Michael Niedermayer
ba8d2c90cd
avformat/rtpdec_xiph: use av_freep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Anton Khirnov
0307cc2253
rtpdec: pass an AVFormatContext to ff_parse_fmtp()
...
Use it for logging, instead of NULL or the stream codec context.
11 years ago
Carl Eugen Hoyos
ced0d6c14d
Use correct msvc type specifiers for ptrdiff_t and size_t.
...
The Windows runtime aborts if it finds %t or %z.
Fixes ticket #3472 .
Reviewed-by: Ronald Bultje
11 years ago
Paul B Mahol
a807c68253
avformat: use ff_alloc_extradata()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Diego Biurrun
7abd35a1ff
avformat: Add av_cold attributes to init functions missing them
12 years ago
Martin Storsjö
c6f1dc8e4c
rtpdec: Move setting the parsing flags to the actual depacketizers
...
This gets rid of almost all the codec specific details from the
generic rtpdec code.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
90c784cc13
rtpdec: Pass the sequence number to depacketizers
...
This allows depacketizers to figure out if packets have been lost.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Anton Khirnov
179a5c37e0
rtpdec: factorize identical code used in several handlers
12 years ago
Mans Rullgard
0a7005bebd
rtpdec_xiph: fix function return type
...
parse_packed_headers() returns either zero or a negative error code
so its return type must be signed.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
12 years ago
Michael Niedermayer
6b72615c32
rtpdec_xiph: switch to av_assert()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Martin Storsjö
2ce7f4d4e6
cosmetics: Fix indentation
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
456001486e
rtsp: Don't expose the MS-RTSP RTX data stream to the caller
...
This avoids exposing a dummy AVStream which won't get any data
and which will make avformat_find_stream_info wait for info about
this stream.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
9261e6cf3f
rtp: Rename the open/close functions to alloc/free
...
This avoids clashes if we internally want to override the global
open function.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Anton Khirnov
6dc7d80de7
avio: avio_ prefix for url_close_dyn_buf
14 years ago
Anton Khirnov
b92c545282
avio: avio_ prefix for url_open_dyn_buf
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
e9eb8d0bce
avio: avio: avio_ prefixes for put_* functions
...
In the name of consistency:
put_byte -> avio_w8
put_<type> -> avio_w<type>
put_buffer -> avio_write
put_nbyte will be made private
put_tag will be merged with avio_put_str
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 77eb5504d3
)
14 years ago
Anton Khirnov
77eb5504d3
avio: avio: avio_ prefixes for put_* functions
...
In the name of consistency:
put_byte -> avio_w8
put_<type> -> avio_w<type>
put_buffer -> avio_write
put_nbyte will be made private
put_tag will be merged with avio_put_str
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
471fe57e1a
avio: rename ByteIOContext to AVIOContext.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit ae628ec1fd
)
14 years ago
Anton Khirnov
ae628ec1fd
avio: rename ByteIOContext to AVIOContext.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Martin Storsjö
504de2ec8f
rtpdec_xiph: Split packets in the depacketizer
...
The vorbis decoder doesn't handle more than one audio frame packed into
the same AVPacket, so they need to be split in the depacketizer.
Originally committed as revision 24704 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
737b3972b5
rtpdec_xiph: Correct the bitmask for num_pkts
...
Originally committed as revision 24696 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
965a3ddb1f
Remove mostly unnecessary rtpdec_*.h files, store the declarations in one file
...
Originally committed as revision 24596 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Josh Allmann
42c63263d1
rtpdec_xiph: Handle the sampling SDP parameter
...
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 24565 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Josh Allmann
adc03a3406
rtpdec_xiph: Drop RTP packets that come in without a prior fragment start marker.
...
This can avoid segfaults in some cases.
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 24537 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Josh Allmann
7d894aeb60
rtpdec_xiph: Avoid extra memcpy in Xiph RTP depacketizer
...
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 24334 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Josh Allmann
af1308f024
rtpdec: Cleanup FMTP parsing code in Xiph RTP depacketizer
...
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 23860 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Eli Friedman
461628c6a8
Fix printf format warnings
...
patch by Eli Friedman <eli dot friedman at gmail dot com>
Originally committed as revision 23547 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.
Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
e58c05bb3c
Remove useless assert(), since this can (in theora) be used for any Xiph
...
codec, so there's no reason to (invalidly) limit it to only Theora.
Also fixes issue 1880 (compilation error on -DDEBUG).
Originally committed as revision 22886 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
2874c81cc8
Replace all remaining occurrences of AVERROR_NOMEM with
...
AVERROR(ENOMEM).
AVERROR_NOMEM is deprecated and will be dropped at the next libavutil
major bump.
Originally committed as revision 22791 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
4bebf2cf64
Change a case of CODEC_TYPE_ into AVMEDIA_TYPE_
...
This was accidentally overwritten in the recent merge of the theora/vorbis codepaths
Originally committed as revision 22774 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Josh Allmann
339f5f3957
Merge Vorbis / Theora depayloaders.
...
Patch by Josh Allmann <joshua DOT allmann AT gmail DOT com>.
Originally committed as revision 22768 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Josh Allmann
cb92a9c038
Reindent after r22766.
...
Patch by Josh Allmann <joshua DOT allmann AT gmail DOT com>.
Originally committed as revision 22767 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Josh Allmann
96070b8b5c
Rename functions / comments from "Theora" to "Xiph" where relevant.
...
Patch by Josh Allmann <joshua DOT allmann AT gmail DOT com>.
Originally committed as revision 22766 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Josh Allmann
06a36faf4c
Rename rtpdec_theora.[ch] to rtpdec_xiph.[ch], as a preparation for merging
...
the Vorbis / theora depacketizers.
Patch by Josh Allmann <joshua DOT allmann AT gmail DOT com>.
Originally committed as revision 22765 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Josh Allmann
887af2aa12
RTP depacketization of Theora
...
Patch by Josh Allmann (joshua allmann gmail com)
Originally committed as revision 22636 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago