Michael Niedermayer
4ecac81678
avformat/psxstr: zero packet to prevent uninitialized data to leak through to the decoder
...
Fixes: msan_uninit-mem_7f150abf2e84_4817_descent-partial.str
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
ffbcb1c6f0
avformat/id3v2: Check avio_read() return value in read_chapter()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
460f8fca9c
avformat/id3v2: factor free code to the end of read_chapter()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Joakim Plate
6eda91ad54
mpegts: stop analyzing when pmt for all programs have been found
...
This disables NOHEADER after finding PMT for all programs to
avoid find_stream_info always exhausting probe size for mpegts.
This is very important for live streams since read speed
will be limited. rtsp, udp and any protocol streaming a live
mpegts will have dramatically faster startup time.
Note, lack of codec parameters for streams can still cause
the full probe size to be exhausted.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
d600b18f22
avformat/utils: limit rfps to values larger than fps
...
This avoids some nonsense values being produced by totally corrupted input
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
476aceaa22
vformat/id3v2: check avio_read for short reads in addition to errors
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Stefano Sabatini
d37d4b6e40
lavf/mux: improve feedback in case of no streams in muxer
11 years ago
Michael Niedermayer
4511531582
avformat/oggparsetheora: zero extradata padding area
...
Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f66fa0ac09d_9197_theora_a4_v6_k250_s0.ogg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
0e0f6bd4a5
avformat/id3v2: Check avio_read() return code in id3v2_parse()
...
Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f5a04a9b50d_7087_mp3__mp3__tooSmallFinal.mp3
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Alex Sukhanov
cc0e2ba1aa
Enable parser in FLV demuxer for H264 codec
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
f6cd447bf1
avformat/utils: treat flv like mov with timestamp discarding
...
This prevents a regression when using an avparser with flv h264
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
6f9be91063
avformat/iff: fix memleak of packet
...
Fixes: msan_uninit-mem_7f65b9788da6_388_24.iff
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
2b31a9c613
avformat/iff: shrink packets to the initialized data
...
Fixes use of uninitialized data
Fixes: msan_uninit-mem_7f65b9788da6_388_24.iff
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
7a5d3a41fe
avformat/mov: Check avio_read() return code in mov_read_extradata() and shrink the extradata if needed / return an error
...
Fixes use of uninitialized data
Fixes: msan_uninit-mem_7ff57193e77e_2715_RAW512K_Stream_004.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
892562e921
avformat/ipmovie: Check OPCODE_CREATE_TIMER size
...
Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f81e836ef8c_5930_ipmovie_interplayvideo_interplay_dpcm__bislogo.mve
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Yu Xiaolei
20bc574b86
build fix: apetag.c depends on img2.c
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
9aba0a6f7b
rtpdec_h264: Check the return value of functions doing allocations
...
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Martin Storsjö
6451c8853a
sdp: Check theora colorspace before producing the configuration string
...
This avoids a memory leak (or having to worry about freeing the
config string) if the colorspace isn't accepted.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Michael Niedermayer
797f2a7913
hdsenc: Check the init_file() return code
...
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Michael Niedermayer
b8ed15d637
hdsenc: Fix an off by one error in an array size check
...
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Michael Niedermayer
417927af3c
hdsenc: Avoid integer overflow
...
Also remove a silly leftover pair of parentheses.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Stefano Sabatini
2cfe70ff3e
lavf/movenc: return meaningful error code from mov_write_header()
11 years ago
Stefano Sabatini
54c596fe7a
lavf/movenc: improve feedback in case of unsupported codec
11 years ago
Michael Niedermayer
f5cf0ea93a
avformat/asf: clear uninitialized areas of packets before returning them
...
Fixes use of uninitialized variables
Fixes msan_uninit-mem_7f839282b6ce_7273_msn08_VBRq70_800x600.wmv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
7d7a701362
avformat/ipmovie: Fix use of uninitialized memory in OPCODE_INIT_VIDEO_BUFFERS
...
Fixes: msan_uninit-mem_7ffe323a25f3_5929_ipmovie_interplayvideo_interplay_dpcm__bislogo.mve
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
7439475e69
avformat/network: check ff_socket_nonblock() return and print a debug message
...
Fixes CID1026744
Fixes CID1026743
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Carl Eugen Hoyos
fb5518cfb7
Force one stream in caf muxer.
...
Based on eeb975f5
11 years ago
Michael Niedermayer
5d8e4f6da0
avformat/rtpenc: check av_packet_get_side_data() return, fix null ptr dereference
...
Fixes CID1035715
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
c5f15f40b9
avformat/rtpdec_h264: fix null pointer dereferences
...
Fixes CID733716
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
db8a53d86a
avformat/sdp: fix memleak on error
...
Fixes CID700640
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
3dbf9afe85
libavformat/hdsenc: check init_file() return code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
d780fdb904
avformat/hlsenc: copy metadata
...
Fixes Ticket2296
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
James Almer
c619e14c31
avformat/oggparseopus: Check opus_duration() return value
...
Regression since 39d11d599c
os->pduration would be wrongly assigned a negative value on invalid packets
instead of aborting.
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Carl Eugen Hoyos
9fa75be96d
mpegts: add HEVC registration descriptor
11 years ago
Martin Lambers
ae9d13f03e
img2: add stereo 3d still picture file extensions
11 years ago
Vittorio Giovara
46c0cbd5dc
rtsp: suppress a incompatible pointer types warning
11 years ago
Michael Niedermayer
551a679795
avformat/oggdec: reset end_trimming when it has been used, so it cannot be used twice by mistake
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Dale Curtis
9c0dd7b462
avformat/oggdec: reset end_trimming in ogg_reset()
...
Fixes the output when seeking back to the start
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Rumin Sam
70e981cf5d
rtspdec: Fix keep-alive request for ACTi cameras
...
Some ACTi cameras fail if "*" is passed as the URI.
Signed-off-by: Ismael Luceno <ismael.luceno@corp.bluecherry.net>
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Anton Khirnov
281a40e18f
lavf: remove an unneeded call to avcodec_get_frame_defaults().
...
avcodec_decode_*() resets the frame itself.
11 years ago
Anton Khirnov
eb891b3114
Replace all uses of avcodec_free_frame with av_frame_free().
11 years ago
Michael Niedermayer
81c1197494
avformat/utils: Check avcodec_open2() return code in av_find_stream_info()
...
Fixes CID1135750
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
6722e564a8
avformat/hdsenc: fix off by 1 error in array size check
...
Fixes CID1135763, CID1135764
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
572965c9a6
avformat/hdsenc: fix unintentional integer overflow in hds_write_packet()
...
Fixes CID1135762
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
95d2fc6a76
avformat/hdsenc: Check rename() return value
...
Fixes CID1135748
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
7441d1ec33
avformat/aviobuf: fix null dereference in avio_close_dyn_buf()
...
Fixes CID1135769
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Carl Eugen Hoyos
945a440d11
Force one stream for raw muxers.
...
Based on eeb975f5
Fixes ticket #3217 .
Reviewed-by: Nicolas George
11 years ago
Michael Niedermayer
7f39352a1b
avformat/oggparseopus: calculate pts/dts for initial packets after seeking
...
based on code from oggparsevorbis
Fixes Ticket3124
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
39d11d599c
avformat/oggparseopus: factor opus_duration() out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Carl Eugen Hoyos
362383b743
Fix remuxing of IMA_QT in mov.
...
Fixes ticket #1603 .
11 years ago