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  
				
					
						
							
							
								 
						
							
							
							
								
							
								2fed05f53a 
								
							
								 
							
						 
						
							
							
								
								avoid more "0xFF << 24" as it is considered a integer overflow in C99  
							
							missed these in my previous search and replace
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e3301459f6 
								
							
								 
							
						 
						
							
							
								
								avidec: Use sample size in case incorrect timestamps for aac in AVI (Ticket  #1755 )  
							
							In some case for aac in AVI, avidec extracts wrong PTS value.
(www.ffmpeg.org/trac/ffmpeg/ticket/1755)
I found additional case(ss=4096) and add condition.
Problematic file link : https://docs.google.com/open?id=0B6r7ZfWFIypCOTdZQUtGVEdJUUE 
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1a104bf641 
								
							
								 
							
						 
						
							
							
								
								Fix broken timestamps for some mp3 in avi samples.  
							
							Mostly based on 73ad355#606 . 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								73ad355d23 
								
							
								 
							
						 
						
							
							
								
								avidec: fix 10l typo  
							
							found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								229e33a2b6 
								
							
								 
							
						 
						
							
							
								
								avidec: override sample size of 1024 for VBR AAC  
							
							Fixes Ticket1755
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								72eaba5e4f 
								
							
								 
							
						 
						
							
							
								
								avformat: Convert some commented-out printf/av_log instances to av_dlog  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								11d4e92ed9 
								
							
								 
							
						 
						
							
							
								
								avformat: Remove non-compiling and/or silly commented-out printf/av_log statements  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0af49a63c7 
								
							
								 
							
						 
						
							
							
								
								avidec: use actually read size instead of requested size  
							
							Fixes CVE-2012-2788 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eeade678f0 
								
							
								 
							
						 
						
							
							
								
								avidec: return 0, not packet size from read_packet().  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8d07742cb1 
								
							
								 
							
						 
						
							
							
								
								avidec: workaround aac with broken block align  
							
							Fixes Ticket1742
Based on patch by: Nikola Vranic <nikola.vranic@rt-rk.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								108957c661 
								
							
								 
							
						 
						
							
							
								
								avidec/guess_ni_flag: fix harmless integer overflow  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								08277a45c3 
								
							
								 
							
						 
						
							
							
								
								lavf: add missing new line to some error messages  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ba2cf854d0 
								
							
								 
							
						 
						
							
							
								
								lavc: move AVRn to a seperate decoder.  
							
							The special cases in demuxers and decoders are a mess otherwise (and more
would be needed to support it fully)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8993c25695 
								
							
								 
							
						 
						
							
							
								
								avidec: fix AVStream.info memleak with dv.  
							
							Fixes Ticket1334
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								36ef5369ee 
								
							
								 
							
						 
						
							
							
								
								Replace all CODEC_ID_* with AV_CODEC_ID_*  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a80ce390df 
								
							
								 
							
						 
						
							
							
								
								avidec: parse INFO tags at the end  
							
							Fixes Ticket1123
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0177b7d23a 
								
							
								 
							
						 
						
							
							
								
								Improve descriptiveness of a number of codec and container long names  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								83d6ad3616 
								
							
								 
							
						 
						
							
							
								
								avidec: Mark first frame as keyframe in case there are no keyframes.  
							
							This fixes seeking in filecopy.avi of Ticket504
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e3c2d83183 
								
							
								 
							
						 
						
							
							
								
								avidec: switch to av_assert  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6b9446e932 
								
							
								 
							
						 
						
							
							
								
								avidec: add .category  
							
							While here make .class_name consistent with other AVClass.
Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7238ed6c84 
								
							
								 
							
						 
						
							
							
								
								avidec: use designated initializers for AVClass  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a982e5a031 
								
							
								 
							
						 
						
							
							
								
								avidec: make scale and rate unsigned.  
							
							The specs say they are unsigned 32bit integers. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								57778f61d0 
								
							
								 
							
						 
						
							
							
								
								avidec: fix odd extradata size case.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								76853a3e0c 
								
							
								 
							
						 
						
							
							
								
								libavformat: ff_get_bmp_header: return esize too  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d0f78e77e1 
								
							
								 
							
						 
						
							
							
								
								avidec: simplify avi_read_idx1()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								212f129fb8 
								
							
								 
							
						 
						
							
							
								
								avidec: discard 0 packets even for sample_size==0 NI  
							
							Fixes Ticket1332
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								455fcf29b8 
								
							
								 
							
						 
						
							
							
								
								avidec: zero extradata padding  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								096231d497 
								
							
								 
							
						 
						
							
							
								
								avidec: Dont crash on avi packets that belong to dv streams in dv in avi  
							
							Fixes null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9789b6ca48 
								
							
								 
							
						 
						
							
							
								
								avidec: document early_exit argument  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d05625bd04 
								
							
								 
							
						 
						
							
							
								
								avidec: handle 0-size packets that exist only in index.  
							
							0-sized packets are used to implement variable fps.
However there seems to be a variation where these are not
even stored in the main file but as 0-size index entries
only.
This fixes the sample in trac issue #957, it now plays both
the same ways as in MPlayer and in a way that looks correct.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c41ac87047 
								
							
								 
							
						 
						
							
							
								
								avidec: update size when packet is shrunk  
							
							Fixes out of array read
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8df774be88 
								
							
								 
							
						 
						
							
							
								
								avidec: better NI detection.  
							
							The new code detects NI avis by analyzing the index.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3c90cc2ef2 
								
							
								 
							
						 
						
							
							
								
								lavf: deprecate av_read_packet().  
							
							The caller can achieve the same effect (i.e. getting raw unparsed/mangled
packets) with av_read_frame() and AVFMT_FLAG_NOPARSE |
AVFMT_FLAG_NOFILLIN 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e6380afa6a 
								
							
								 
							
						 
						
							
							
								
								avidec: Reduce log level for out of index error message.  
							
							Its otherwise spaming every time one tries to seek to outside
the file.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c36010c286 
								
							
								 
							
						 
						
							
							
								
								avidec: remove harmless duplicate code.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								167f3b8de7 
								
							
								 
							
						 
						
							
							
								
								libavformat: Add an ff_ prefix to some lavf internal symbols  
							
							Prefix the functions/tables brktimegm, pcm_read_seek,
dv_offset_reset, voc_get_packet, codec_movaudio_tags,
codec_movvideo_tags.
After this, lavf has no global symbols without the proper prefix.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago