571ab8344a 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: allow rounding errors between scale/rate and timebase  
							
							Fixes Ticket3670
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								91736025b2 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: set average frame rate from header  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								466988ab75 
								
							
								 
							
						 
						
							
							
								
								Fix dont and doesnt typos  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e9ad121ba5 
								
							
								 
							
						 
						
							
							
								
								Fix skiping typos  
							
							Found-by: Alessandro Ghedini <alessandro@ghedini.me>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								62056d09b1 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: skip len=0 entries from the index  
							
							Reduces cpu & memory requirements for the index
See Ticket 3531
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								57fb570908 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: Speed up keyframe detection code  
							
							Fixes Ticket3531
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2f08dad028 
								
							
								 
							
						 
						
							
							
								
								lavf/avidec: Read metadata EXIF tags from AVIF tag. Based on patch by Gregory Wolfe (Kodak Alaris) <gregory.wolfe@kodakalaris.com>.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cc8b45c0ce 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: remove unused variables  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9d599e3f6e 
								
							
								 
							
						 
						
							
							
								
								avi: Improve non-interleaved detection  
							
							Additional fixes by Nigel Touati-Evans <nigel.touatievans@gmail.com>.
Check the index for streams with a time drift of 2s or a buffer drift
of 64MB.
Bug-Id: 666
CC: libav-stable@libav.org 
Sample-Id: yet-another-broken-interleaved-avi.avi
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Diego Biurrun <diego@biurrun.de> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f1c4a54f6e 
								
							
								 
							
						 
						
							
							
								
								lavf: add supported extension to avi and mov demuxers  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5d75730c58 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: Check required demuxing buffer sizes in guess_ni_flag()  
							
							Fixes Ticket3421
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								01000064c9 
								
							
								 
							
						 
						
							
							
								
								avidec: calculate missing bitrates from index  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d92024f18f 
								
							
								 
							
						 
						
							
							
								
								lavf: more correct printf format specifiers  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								52a2138656 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: Use a buffer with sufficient padding in read_gab2_sub()  
							
							Fixes out of array read
Fixes: 0ff9841c2a102f06e0d582bfc3376cbd-asan_heap-oob_495589_6836_cov_1763916974_mewmew_ssa.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b7702fafb3 
								
							
								 
							
						 
						
							
							
								
								Avoid a possible overflow when reading Nikon avi files.  
							
							Suggested-by: Reimar 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f9c2d4d17e 
								
							
								 
							
						 
						
							
							
								
								Allow decoding of slightly broken Nikon avi files.  
							
							Fixes ticket #3330 . 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								94cf4f8bac 
								
							
								 
							
						 
						
							
							
								
								Use the h264 parser when decoding VSSH in avi.  
							
							Fixes ticket #3261  visually.
Analyzed-by: Michael Doilnitsyn 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e93bc3efbf 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: use ff_get_extradata()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8f8bc92365 
								
							
								 
							
						 
						
							
							
								
								Add missing #includes for *INT64_MAX and *INT64_C  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7865759409 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: Dont assert the existence of an index for video streams.  
							
							Its possible in various rare cases that an index cannot be created or allocated.
Fixes assertion failure
Fixes: signal_sigabrt_7ffff7126425_7712_pokem.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9cbe834dfd 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: Skip duplicate strf chunks  
							
							Fixes Ticket3119
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7c98c834e0 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: also print position in print_tag()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ce9bba5340 
								
							
								 
							
						 
						
							
							
								
								avidec: fix a memleak in the dv init code.  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a807c68253 
								
							
								 
							
						 
						
							
							
								
								avformat: use ff_alloc_extradata()  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ceec6e792e 
								
							
								 
							
						 
						
							
							
								
								avi: directly resync on DV in AVI read failure  
							
							Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								756547ce7f 
								
							
								 
							
						 
						
							
							
								
								avi: DV in AVI must be considered single stream  
							
							Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1cac9accbd 
								
							
								 
							
						 
						
							
							
								
								avi: properly fail if the dv demuxer is missing  
							
							CC: libav-stable@libav.org  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8d07258bb6 
								
							
								 
							
						 
						
							
							
								
								avidec: Make sure a packet is large enough before reading its data  
							
							Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org 
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d872fb0f7f 
								
							
								 
							
						 
						
							
							
								
								lavf: Reset the entry count and allocation size variables on av_reallocp failures  
							
							When av_reallocp fails, the associated variables that keep track of
the number of elements in the array (and in some cases, the
separate number of allocated elements) need to be reset.
Not all of these might technically be needed, but it's better to
reset them if in doubt, to make sure variables don't end up
conflicting.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5626f994f2 
								
							
								 
							
						 
						
							
							
								
								avformat: Use av_reallocp() where suitable  
							
							Signed-off-by: Diego Biurrun <diego@biurrun.de> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c051d668b5 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: use av_calloc() and check for allocation error  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8586d8dda2 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: fix signedness of pointer type in get_stream_idx()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								227a0eb5a9 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: match first index and first packet size=0 handling  
							
							Fixes Ticket2861
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7950e519bb 
								
							
								 
							
						 
						
							
							
								
								Disable deprecation warnings for cases where a replacement is available  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c8f0b20b4a 
								
							
								 
							
						 
						
							
							
								
								avidec: Let the inner dv demuxer take care of discarding  
							
							CC: libav-stable@libav.org  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								10aa44aa67 
								
							
								 
							
						 
						
							
							
								
								avidec: K&R formatting cosmetics  
							
							Signed-off-by: Diego Biurrun <diego@biurrun.de>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ef8cc06d6e 
								
							
								 
							
						 
						
							
							
								
								avformat/avidec: Fix incorrect detection of badly interleaved avi  
							
							The method guess_ni_flag needs to divide timestamps in the index
by sample_size if it is set in order to compare different streams correctly.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6c593f1b67 
								
							
								 
							
						 
						
							
							
								
								avidec: dont randomly skip packets for offseting the index  
							
							Fixes Ticket2490
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								231b331718 
								
							
								 
							
						 
						
							
							
								
								Do not read strd chunk in avi files as H264 extradata.  
							
							Fixes ticket #2561 . 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a079ed63d3 
								
							
								 
							
						 
						
							
							
								
								avidec: Enable full parsing for potencoder mpeg1/2  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e0f8be6413 
								
							
								 
							
						 
						
							
							
								
								avformat: Add AVPROBE_SCORE_EXTENSION define and use where appropriate  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								27b7bfc7b5 
								
							
								 
							
						 
						
							
							
								
								avidec: Fix demuxing of non seekable avis with multiple RIFFs  
							
							This solution uses the size of the first RIFF if its valid
to check frame size validity when the filesize could not be determined.
Feedback is welcome, other ideas and improvments as well!
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8d0da20ca6 
								
							
								 
							
						 
						
							
							
								
								avidec: fix duration and bitrate of truncated files  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1afddbe59e 
								
							
								 
							
						 
						
							
							
								
								avpacket: use AVBuffer to allow refcounting the packets.  
							
							This will allow us to avoid copying the packets in many cases.
This breaks ABI. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								82d79289db 
								
							
								 
							
						 
						
							
							
								
								avformat: Allocate duration_error separately  
							
							This significantly reduces the memory needed per AVStream when the
array is not needed.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								570a4a0189 
								
							
								 
							
						 
						
							
							
								
								avidec: use sensible error codes instead of -1  
							
							Use AVERROR_INVALIDDATA on invalid inputs, and AVERROR_EOF when no more
frames are available in an interleaved AVI.
Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								028cc42a16 
								
							
								 
							
						 
						
							
							
								
								read_gab2_sub: fix null pointer dereference  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ccf771cd79 
								
							
								 
							
						 
						
							
							
								
								Correctly skip strf tag for subtitles when decoding avi.  
							
							Fixes ticket #1797 . 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								be89693ddc 
								
							
								 
							
						 
						
							
							
								
								avidec: try to support oddly muxed MMES stream  
							
							Fixes ticket1804
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3d48dd01fd 
								
							
								 
							
						 
						
							
							
								
								avidec: remove unneeded null check  
							
							Fixes CID29555
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago