1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-02 03:06:28 +02:00
FFmpeg/libavformat
Måns Rullgård c7f625eecf Fix erroneous behaviour when format probe hits end of file
If the format probe hits end of file, do not add the error code
to the buffer position.  This is obviously wrong, and with a
small input file would cause a negative buffer overflow.

Fixes issue 1818.

Originally committed as revision 22571 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-16 21:45:30 +00:00
..
4xm.c
adts.h In mpegts muxer, write adts header if aac bitstream does not contain it 2010-03-09 00:18:49 +00:00
adtsenc.c In mpegts muxer, write adts header if aac bitstream does not contain it 2010-03-09 00:18:49 +00:00
aea.c Add condition to aea demuxer probe. 2009-09-13 18:27:53 +00:00
aiff.h decode qcelp in aiff, implement #1524, patch by Vitor 2009-11-30 22:01:21 +00:00
aiffdec.c Use AV_METADATA_DONT_STRDUP* / use av_malloced metadata instead of strduped 2009-12-13 20:27:29 +00:00
aiffenc.c Split up the AIFF muxer and demuxer into separate files. 2009-10-15 09:45:16 +00:00
allformats.c Add an RTSP muxer 2010-02-22 21:28:19 +00:00
amr.c
anm.c Make DeluxePaint Animation demuxer actually return the find_record() error code (issue 1739). 2010-02-12 11:31:35 +00:00
apc.c
ape.c Replace all the occurrences of AVERROR_EIO with AVERROR(EIO), and mark 2010-03-13 19:19:44 +00:00
apetag.c Include apetag.h which contains the prototype for ff_ape_parse_tag(). 2010-02-28 01:43:47 +00:00
apetag.h Move APE tag parsing into separate module. 2009-08-11 17:08:09 +00:00
asf.c Use ASF supports "markers" which are a name and a time stamp to create 2010-03-08 13:13:18 +00:00
asf.h Use ASF supports "markers" which are a name and a time stamp to create 2010-03-08 13:13:18 +00:00
asfcrypt.c
asfcrypt.h
asfdec.c Use ASF supports "markers" which are a name and a time stamp to create 2010-03-08 13:13:18 +00:00
asfenc.c asfenc: write tags in proper UTF-16. 2010-02-25 16:59:55 +00:00
assdec.c
assenc.c
au.c AU : demuxed packet size should be sample size aligned. 2009-12-07 13:55:38 +00:00
audiointerleave.c
audiointerleave.h
avc.c Include avc.h from avc.c: It contains several prototypes. 2010-02-28 02:04:34 +00:00
avc.h
avformat.h Add a new field AVFormatContext.start_time_realtime 2010-03-15 10:29:37 +00:00
avi.c Set lavf identification string globally in av_write_header(), rather 2010-02-16 16:32:25 +00:00
avi.h Add AVI metadata conversion table. 2010-02-06 12:32:44 +00:00
avidec.c Avoid creating tiny (possibly only 64 bytes large) audio packets resulting in 2010-03-14 13:38:00 +00:00
avienc.c Set lavf identification string globally in av_write_header(), rather 2010-02-16 16:32:25 +00:00
avio.c Add AVSEEK_FORCE flag to indicate that the code should attempt to seek 2010-03-15 22:54:22 +00:00
avio.h Add AVSEEK_FORCE flag to indicate that the code should attempt to seek 2010-03-15 22:54:22 +00:00
aviobuf.c Add AVSEEK_FORCE flag to indicate that the code should attempt to seek 2010-03-15 22:54:22 +00:00
avisynth.c Add ff_ prefixes to exported symbols in libavformat/riff.h. 2009-06-22 23:09:34 +00:00
avlanguage.c 100l, all avlanguage tables should be both static and const. 2009-09-06 08:36:25 +00:00
avlanguage.h Convert names to the FFmpeg style. 2009-04-28 19:51:50 +00:00
avs.c
bethsoftvid.c
bfi.c
bink.c Prevent memory leak introduced in r22389 in Bink demuxer: pass partial packets to decoder. 2010-03-11 12:29:02 +00:00
c93.c Check the index validity more thoroughly for the c93 probe function. 2009-09-14 20:01:32 +00:00
caf.c Make AVCodecTag.id enum CodecID and use CODEC_ID_NONE instead of 0. 2009-10-16 14:46:06 +00:00
caf.h #include correct header to fix 'make checkheaders'. 2009-09-18 19:51:05 +00:00
cafdec.c Replace all the occurrences of AVERROR_EIO with AVERROR(EIO), and mark 2010-03-13 19:19:44 +00:00
cdg.c CD+G demuxer and decoder 2009-12-17 17:25:31 +00:00
concat.c Fix concat seeking SEEK_END case. 2010-03-08 00:40:22 +00:00
crcenc.c
cutils.c
daud.c
dsicin.c Fix memory leak for truncated frames 2010-02-19 20:19:41 +00:00
dv.c Split parts of dvdata.h into dvdata.c, this ensures that things like 2009-10-16 07:55:57 +00:00
dv.h
dvenc.c Split parts of dvdata.h into dvdata.c, this ensures that things like 2009-10-16 07:55:57 +00:00
dxa.c Improve dxa probe by checking the values for width and height are reasonable. 2009-09-17 18:08:07 +00:00
eacdata.c update my email address 2010-01-09 03:31:13 +00:00
electronicarts.c Use enum CodecID where appropriate. 2010-01-10 08:57:20 +00:00
ffm.h
ffmdec.c Fix ffm_close return type. 2010-03-10 14:26:15 +00:00
ffmenc.c Fix breakage introduced by setting the sample_fmt to SAMPLE_FMT_NONE (r20623). This makes 2009-12-14 21:08:21 +00:00
file.c Do not call lseek() with invalid whence value 2010-02-13 16:56:37 +00:00
filmstripdec.c Adobe Filmstrip muxer and demuxer 2010-01-14 12:55:44 +00:00
filmstripenc.c Adobe Filmstrip muxer and demuxer 2010-01-14 12:55:44 +00:00
flacdec.c Replace all the occurrences of AVERROR_EIO with AVERROR(EIO), and mark 2010-03-13 19:19:44 +00:00
flacenc.c
flacenc.h
flic.c
flv.h Register some additional AMF types in libavformat/flv.h 2009-07-21 07:18:14 +00:00
flvdec.c fetch flv duration from file if it is set to 0 in metadata 2010-01-19 19:41:24 +00:00
flvenc.c Guess the duration before converting video and write guessed duration 2010-02-02 22:23:09 +00:00
framecrcenc.c
gif.c Rename pbBufPtr() to put_bits_ptr(). 2009-04-13 16:59:38 +00:00
gopher.c move ff_url_split() and ff_url_join() declarations to internal.h 2010-03-14 23:59:48 +00:00
gxf.c Set GXF fallback time-base to match the one specified for audio-only. 2010-03-06 22:25:53 +00:00
gxf.h
gxfenc.c Make AVCodecTag.id enum CodecID and use CODEC_ID_NONE instead of 0. 2009-10-16 14:46:06 +00:00
http.c move ff_url_split() and ff_url_join() declarations to internal.h 2010-03-14 23:59:48 +00:00
id3v1.c Add a list of generic tags and change demuxers to follow it. 2010-02-01 11:39:10 +00:00
id3v1.h More ID3v1 genres from ffmbc. 2009-12-13 20:51:38 +00:00
id3v2.c Add a list of generic tags and change demuxers to follow it. 2010-02-01 11:39:10 +00:00
id3v2.h Remove extraneous const keyword 2009-10-17 14:07:28 +00:00
idcin.c Fix memory leak for truncated packets in idCin demuxer 2010-02-21 14:41:39 +00:00
idroq.c
iff.c IFF: move ff_cmap_read_palette() prototype to a header file 2010-03-08 02:36:00 +00:00
img2.c Add flag so muxers not needing width/height can signal this. 2010-02-12 20:35:29 +00:00
internal.h rename av_read_frame_flush to ff_read_frame_flush 2010-03-15 23:15:24 +00:00
ipmovie.c Recognize 16-bit Interplay Video variant 2009-12-27 08:21:40 +00:00
isom.c Store strings directly in mov_mdhd_language_map instead of using pointers, 2010-01-30 22:05:26 +00:00
isom.h Always consider the mov language code as 4 bytes fixed size and change the 2010-01-30 21:54:06 +00:00
iss.c
iv8.c Fix timestamps. 2010-02-11 22:32:46 +00:00
libavformat.v Add symbol versioning for shared libraries 2010-01-16 04:49:02 +00:00
libnut.c Add ff_ prefixes to exported symbols in libavformat/riff.h. 2009-06-22 23:09:34 +00:00
lmlm4.c
Makefile matroskadec: fix missing dependency 2010-03-15 22:37:14 +00:00
matroska.c matroskadec: add support for SIPR audio tracks 2010-03-12 23:49:06 +00:00
matroska.h
matroskadec.c matroskadec: use more appropriate error code 2010-03-15 00:19:22 +00:00
matroskaenc.c cosmetics : Print newline after error message. 2010-03-15 19:03:48 +00:00
metadata_compat.c Add a list of generic tags and change demuxers to follow it. 2010-02-01 11:39:10 +00:00
metadata.c Set lavf identification string globally in av_write_header(), rather 2010-02-16 16:32:25 +00:00
metadata.h Set lavf identification string globally in av_write_header(), rather 2010-02-16 16:32:25 +00:00
mm.c Remove static function name prefixes from American Laser Games MM demuxer 2010-03-09 12:37:13 +00:00
mmf.c Add ff_ prefixes to exported symbols in libavformat/riff.h. 2009-06-22 23:09:34 +00:00
mov.c In mov demuxer, convert mac encoded strings to utf-8 2010-03-09 01:03:42 +00:00
movenc.c Fix encoder metadata string langcode in mov muxer 2010-03-09 01:53:16 +00:00
mp3.c Many mp3s seem to contain padding after id3 tags that is not considered in the 2010-02-28 16:40:17 +00:00
mpc8.c Return an error when the parsed mpc chunk size is negative, otherwise we 2009-09-30 13:35:13 +00:00
mpc.c Do not leave uninitialized data in the packet in MPC demuxer. Should allow for 2010-02-20 11:22:47 +00:00
mpeg.c Dont give up after 100kb of zero bytes but returnd EAGAIN 2010-02-10 14:25:57 +00:00
mpeg.h
mpegenc.c put_bits can only reliably write up to 31 bit bits, above it relies on 2009-10-01 15:40:29 +00:00
mpegts.c rename av_program_add_stream_index to ff_program_add_stream_index 2010-03-15 23:14:07 +00:00
mpegts.h Fix warnings about implicit function declaration when compiling rtpdec.c 2010-02-01 23:10:04 +00:00
mpegtsenc.c In mpegts muxer, free adts context and temporary data 2010-03-10 09:20:32 +00:00
mpjpeg.c
msnwc_tcp.c
mtv.c Plug memory leak for truncated files 2010-03-02 21:32:56 +00:00
mvi.c 10l, pix_fmt should be set by the motionpixels decoder, not by the demuxer. 2009-11-26 21:15:06 +00:00
mxf.c
mxf.h
mxfdec.c Do D10 AES3 audio conversion in-place instead of using a large on-stack buffer. 2009-11-20 23:12:55 +00:00
mxfenc.c Remove MAX_STREAMS usage in ogg and mxf muxers 2010-01-29 06:38:00 +00:00
ncdec.c Do not return values above AVPROBE_SCORE_MAX from probe(). 2009-09-15 13:28:14 +00:00
network.h Localize the #define _SVID_SOURCE needed for inet_aton() to os_support.c 2010-03-07 19:48:59 +00:00
nsvdec.c Plug memory leak in NSV demuxer. 2010-03-03 17:26:00 +00:00
nut.c Plug memory leak in NUT muxer and demuxer 2010-03-03 17:31:24 +00:00
nut.h Plug memory leak in NUT muxer and demuxer 2010-03-03 17:31:24 +00:00
nutdec.c Plug memory leak in NUT muxer and demuxer 2010-03-03 17:31:24 +00:00
nutenc.c Plug memory leak in NUT muxer and demuxer 2010-03-03 17:31:24 +00:00
nuv.c Add ff_ prefixes to exported symbols in libavformat/riff.h. 2009-06-22 23:09:34 +00:00
oggdec.c oggdec: Pass packets to header() until the stream is done with them 2010-03-12 05:17:01 +00:00
oggdec.h oggdec: Pass packets to header() until the stream is done with them 2010-03-12 05:17:01 +00:00
oggenc.c Correctly write last 0 lacing value when packet size is multiple of 255, patch by Greg Maxwell, gmaxwell at gmail dot com 2010-03-15 23:04:09 +00:00
oggparsedirac.c Fix warning about incompatible pointer types 2010-03-07 02:26:34 +00:00
oggparseflac.c oggdec: Metadata is per-stream; don't merge multiple streams' together 2010-03-12 05:16:44 +00:00
oggparseogm.c oggdec: Set packet duration for ogm streams 2010-03-13 05:55:57 +00:00
oggparseskeleton.c oggdec: Parse skeleton to determine the start time of each stream 2010-03-11 07:17:40 +00:00
oggparsespeex.c oggdec: Metadata is per-stream; don't merge multiple streams' together 2010-03-12 05:16:44 +00:00
oggparsetheora.c oggdec: Metadata is per-stream; don't merge multiple streams' together 2010-03-12 05:16:44 +00:00
oggparsevorbis.c oggdec: Parse ogm chapters 2010-03-12 05:16:57 +00:00
oma.c Fix indentation after r21257. 2010-01-17 00:27:22 +00:00
options.c Flag to ignore dts on frames that contain pts. 2010-01-30 22:55:12 +00:00
os_support.c Move resolve_host() to ffserver.c 2010-03-08 18:43:27 +00:00
os_support.h Add comment on #endif about condition that triggers it. 2009-10-21 01:25:39 +00:00
output-example.c Remove conditional M_PI definition, it is already defined in 2010-01-22 23:16:23 +00:00
psxstr.c
pva.c technically mp2 in pva needs AVSTREAM_PARSE_FULL 2009-05-27 06:58:22 +00:00
qcp.c Add QCP demuxer. 2009-05-20 17:19:39 +00:00
qtpalette.h Remove alpha channel from default colorspace tables, since it is unused. See 2009-03-22 13:05:13 +00:00
r3d.c Plug some memory leaks for truncated files 2010-03-02 21:32:29 +00:00
raw.c Reindent 2010-02-14 19:00:36 +00:00
raw.h
rdt.c handler can be NULL if we did not support this dynamic format (codec). 2010-01-07 23:05:19 +00:00
rdt.h
riff.c riff: don't pad extradata when writing ASF. 2010-03-15 08:49:02 +00:00
riff.h Make AVCodecTag.id enum CodecID and use CODEC_ID_NONE instead of 0. 2009-10-16 14:46:06 +00:00
rl2.c
rm.c ff_rm_metadata is const. 2009-09-06 08:57:19 +00:00
rm.h export rm_reorder_sipr_data() for future use by matroska demuxer 2010-03-12 23:35:59 +00:00
rmdec.c export rm_reorder_sipr_data() for future use by matroska demuxer 2010-03-12 23:35:59 +00:00
rmenc.c Remove index writing in RM muxer, since it is broken (multiple streams per 2009-03-21 20:34:24 +00:00
rpl.c
rtmp.h RTMP protocol support (as a client) 2009-07-31 06:49:36 +00:00
rtmppkt.c 1l trocadero: forgot reference operator on bytestream_get_be32() argument 2010-03-07 08:52:53 +00:00
rtmppkt.h Make RTMP send/receive packet functions report number of bytes read or sent. 2010-01-30 09:24:52 +00:00
rtmpproto.c move ff_url_split() and ff_url_join() declarations to internal.h 2010-03-14 23:59:48 +00:00
rtp.c Remove the inclusion of unneeded headers 2010-01-11 19:55:14 +00:00
rtp.h
rtpdec_amr.c Prefix non-static RTSP functions with ff_. 2010-02-23 00:35:50 +00:00
rtpdec_amr.h RTP/AMR depacketizer, by Martin Storsjö <$firstname at $firstname dot st>. 2010-02-10 17:20:50 +00:00
rtpdec_asf.c Rename RTP depacketizer files from rtp_* to rtpdec_* 2010-02-28 11:03:14 +00:00
rtpdec_asf.h Rename RTP depacketizer files from rtp_* to rtpdec_* 2010-02-28 11:03:14 +00:00
rtpdec_h263.c Add RTP/H.263 depacketizer by Martin Storsjö <$firstname () $firstname st>. 2010-01-28 16:08:13 +00:00
rtpdec_h263.h Add RTP/H.263 depacketizer by Martin Storsjö <$firstname () $firstname st>. 2010-01-28 16:08:13 +00:00
rtpdec_h264.c Properly pad H.264 extradata when taken from fmtp SDP attributes 2010-03-03 21:00:50 +00:00
rtpdec_h264.h Rename RTP depacketizer files from rtp_* to rtpdec_* 2010-02-28 11:03:14 +00:00
rtpdec_vorbis.c Rename RTP depacketizer files from rtp_* to rtpdec_* 2010-02-28 11:03:14 +00:00
rtpdec_vorbis.h Rename RTP depacketizer files from rtp_* to rtpdec_* 2010-02-28 11:03:14 +00:00
rtpdec.c Rename RTP depacketizer files from rtp_* to rtpdec_* 2010-02-28 11:03:14 +00:00
rtpdec.h Prefix non-static RTSP functions with ff_. 2010-02-23 00:35:50 +00:00
rtpenc_aac.c Rename the RTP muxer sources so that the packetisation functions are in 2010-01-18 13:44:12 +00:00
rtpenc_amr.c Rename the RTP muxer sources so that the packetisation functions are in 2010-01-18 13:44:12 +00:00
rtpenc_h263.c Fix a crash in the H.263 RTP packetizer 2010-03-11 16:26:14 +00:00
rtpenc_h264.c Fix the M bit for multi-packet NALs. 2009-05-16 17:11:47 +00:00
rtpenc_mpv.c Rename the RTP muxer sources so that the packetisation functions are in 2010-01-18 13:44:12 +00:00
rtpenc.c Use AVFormatContext.start_time_realtime in the RTP muxer 2010-03-15 10:37:12 +00:00
rtpenc.h Add support for AMR audio in the RTP muxer 2009-04-08 07:16:14 +00:00
rtpproto.c move ff_url_split() and ff_url_join() declarations to internal.h 2010-03-14 23:59:48 +00:00
rtsp.c Make rtsp_skip_packet non-static, add ff prefix 2010-03-15 16:31:15 +00:00
rtsp.h Make rtsp_skip_packet non-static, add ff prefix 2010-03-15 16:31:15 +00:00
rtspcodes.h
rtspenc.c Reindent 2010-03-15 16:36:54 +00:00
sdp.c Rename url_split to ff_url_split 2010-03-08 09:03:25 +00:00
seek.c rename av_read_frame_flush to ff_read_frame_flush 2010-03-15 23:15:24 +00:00
seek.h cosmetic changes (indentation, doxygen comments, braces, put structures for API to header, ...) 2009-09-05 19:31:01 +00:00
segafilm.c
sierravmd.c Fix overflow check insufficiently improved in r19840. 2009-09-16 15:12:23 +00:00
siff.c Improve SIFF probe by also checking the first tag is one of the expected. 2009-09-17 18:09:20 +00:00
smacker.c Set duration in Smacker demuxer 2010-01-30 10:37:52 +00:00
sol.c
sox.h Implement SoX native format muxer and demuxer. 2009-05-30 18:51:15 +00:00
soxdec.c Replace all the occurrences of AVERROR_EIO with AVERROR(EIO), and mark 2010-03-13 19:19:44 +00:00
soxenc.c Implement SoX native format muxer and demuxer. 2009-05-30 18:51:15 +00:00
spdif.c Add support for S/PDIF encapsulation. 2009-08-21 08:34:19 +00:00
swf.h Make AVCodecTag.id enum CodecID and use CODEC_ID_NONE instead of 0. 2009-10-16 14:46:06 +00:00
swfdec.c Add ff_ prefixes to exported symbols in libavformat/riff.h. 2009-06-22 23:09:34 +00:00
swfenc.c Add ff_ prefixes to exported symbols in libavformat/riff.h. 2009-06-22 23:09:34 +00:00
tcp.c move ff_url_split() and ff_url_join() declarations to internal.h 2010-03-14 23:59:48 +00:00
thp.c
tiertexseq.c
timefilter.c Replace rand() usage by av_lfg_get(). 2009-04-10 17:12:36 +00:00
timefilter.h
tmv.c Do not set AVCodecContext.sample_fmt in the TMV and SoX demuxers. 2009-11-07 22:35:00 +00:00
tta.c 10l : make sure probe buffer is large enough. 2009-12-17 13:05:37 +00:00
txd.c
udp.c move ff_url_split() and ff_url_join() declarations to internal.h 2010-03-14 23:59:48 +00:00
utils.c Fix erroneous behaviour when format probe hits end of file 2010-03-16 21:45:30 +00:00
vc1test.c Do not set 0 FPS in VC-1 test stream format demuxer. 2009-09-15 16:36:53 +00:00
vc1testenc.c
voc.c Make AVCodecTag.id enum CodecID and use CODEC_ID_NONE instead of 0. 2009-10-16 14:46:06 +00:00
voc.h Determine VOC block length when length field is zero, fixes issue1538. 2009-11-24 07:08:17 +00:00
vocdec.c Determine VOC block length when length field is zero, fixes issue1538. 2009-11-24 07:08:17 +00:00
vocenc.c
vqf.c Use AV_METADATA_DONT_STRDUP* / use av_malloced metadata instead of strduped 2009-12-13 20:27:29 +00:00
wav.c Reindent 2010-02-10 20:27:53 +00:00
wc3movie.c Use AV_METADATA_DONT_STRDUP* / use av_malloced metadata instead of strduped 2009-12-13 20:27:29 +00:00
westwood.c Remove unused code from Westwood VQA/AUD demuxer. 2009-04-16 12:39:14 +00:00
wv.c Set start_time and duration in AVStream instead of AVFormatContext for 2010-01-21 09:47:02 +00:00
xa.c Fix memory leak for truncated frames 2010-02-19 20:20:17 +00:00
yuv4mpeg.c Use chroma_sample_location in reading/writing yuv4mpeg 2009-05-11 04:35:15 +00:00