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  
				
					
						
							
							
								 
						
							
							
							
								
							
								b8c1655882 
								
							
								 
							
						 
						
							
							
								
								avidec: print informative error messages if seeking fails.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6e9651d106 
								
							
								 
							
						 
						
							
							
								
								lavf: remove AVFormatParameters from AVFormatContext.read_header signature  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								28d634711b 
								
							
								 
							
						 
						
							
							
								
								avidec: Fix regression with chunks that are larger than the file.  
							
							This commit makes the check specific to the case that needs it.
Regression was introduced by
commit 62adc60b97 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								14d94a1952 
								
							
								 
							
						 
						
							
							
								
								avidec: Fix use of stream_index before validation of its range.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4f11bed7a1 
								
							
								 
							
						 
						
							
							
								
								avidec: fix "avidec.c:362: warning: st may be used uninitialized in this function"  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b89f8774f2 
								
							
								 
							
						 
						
							
							
								
								avidec: migrate last of lavf from FF_ER_* to AV_EF_*  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b26f0ee39f 
								
							
								 
							
						 
						
							
							
								
								avidec: XMPG support  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a63a86fd6f 
								
							
								 
							
						 
						
							
							
								
								Fixes issue 890: OOM with zmbv file  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								64cafe340b 
								
							
								 
							
						 
						
							
							
								
								Make the avi palette opaque.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3c7f75bd84 
								
							
								 
							
						 
						
							
							
								
								avidec: move eof check before continue.  
							
							Fixes a infinite loop
Fixes half of Ticket800
Bug found by Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								62adc60b97 
								
							
								 
							
						 
						
							
							
								
								avidec: Check that the header chunks fit in the available filesize.  
							
							Fixes Ticket771
Bug found by: Diana Elena Muscalu
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e098fba5d9 
								
							
								 
							
						 
						
							
							
								
								avidec: Fix infinite loop caused by rounding of timestamps in non interleaved avis.  
							
							Fixes Ticket775
Bug found by: Diana Elena Muscalu
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cd3716b9aa 
								
							
								 
							
						 
						
							
							
								
								Replace all uses of av_close_input_file() with avformat_close_input().  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c3f9ebf743 
								
							
								 
							
						 
						
							
							
								
								lavf: make av_set_pts_info private.  
							
							It's supposed to be called only from (de)muxers. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								12bc20502a 
								
							
								 
							
						 
						
							
							
								
								Generalize RIFF INFO tag support; support reading INFO tag in wav  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bb3244dee2 
								
							
								 
							
						 
						
							
							
								
								Replace all usage of strcasecmp/strncasecmp  
							
							All current usages of it are incompatible with localization.
For example strcasecmp("i", "I") != 0 is possible, but would
break many of the places where it is used.
Instead use our own implementations that always treat the data
as ASCII.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								96949dafcc 
								
							
								 
							
						 
						
							
							
								
								Replace all strcasecmp/strncasecmp usages.  
							
							All current usages of it are incompatible with localization.
For example strcasecmp("i", "I") != 0 is possible, but would
break many of the places where it is used.
Instead use our own implementations that always treat the data
as ASCII.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								742d218bf1 
								
							
								 
							
						 
						
							
							
								
								avidec: Return correct error code from avi_sync() in case of IO error.  
							
							Found-by: Tanami, Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ab88b25f99 
								
							
								 
							
						 
						
							
							
								
								lavf: use avpriv_ prefix for some dv functions.  
							
							They are used in libavdevice. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								84ad31ff18 
								
							
								 
							
						 
						
							
							
								
								lavf: replace av_new_stream->avformat_new_stream part II.  
							
							Manual replacements are done in this commit.
In many cases, the id is some constant made up number (e.g. 0 for video
and 1 for audio), which is then not used in the demuxer for anything.
Those ids are removed. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c4e02d3432 
								
							
								 
							
						 
						
							
							
								
								avidec: Dont switch to NI mode if there is no index.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								39f6733f05 
								
							
								 
							
						 
						
							
							
								
								Do not try to parse empty strf tags.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								539399d4d1 
								
							
								 
							
						 
						
							
							
								
								AVOptions: rename remaining FF_OPT_TYPE_* to AV_OPT_TYPE_*.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1703013cb7 
								
							
								 
							
						 
						
							
							
								
								avidec: fix signed overflow in avi_sync()  
							
							Keeping byte values read from the file as unsigned is consistent
with how they are subsequently used and avoids an undefined left
shift by 24 when bit 7 is set.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2886f6759f 
								
							
								 
							
						 
						
							
							
								
								avidec: simplify size parameter in memset()  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								71e23d39a3 
								
							
								 
							
						 
						
							
							
								
								avidec: Replace av_realloc by av_realloc_f when relevant.  
							
							Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f9e083a156 
								
							
								 
							
						 
						
							
							
								
								avidec: Check return value of more avio_seek calls  
							
							The move of avio_seek in avi_read_seek is to avoiding modifying
state if the seek would fail.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								53f8f0a70e 
								
							
								 
							
						 
						
							
							
								
								Fix for some non interleaved avi files that gets played twice or won't end  
							
							This changes so we assume EOF when we can't find the next
streams index entry for non interleaved file.
http://trac.xbmc.org/ticket/5585 
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e42a3dd123 
								
							
								 
							
						 
						
							
							
								
								Allow reading of growing avi files (ie currently being written)  
							
							This uses the RIFF header stored size to figure out the expected AVI file size, instead
of the actual file. To work fully it requires handling failed avio_seek() instead
of assuming they always succeed.
Some fate file has been cut off and contains half a frame at the end which previously
was not output during demuxing. This frame is now output to encoder, thus fate
diff update. 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2f63440c59 
								
							
								 
							
						 
						
							
							
								
								lavf: add support for error_recognition, use it in avidec, and bump minor API version  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								df2039f573 
								
							
								 
							
						 
						
							
							
								
								avidec: add missing initializer braces to shut up gcc warning.  
							
							This fixes the warning:
    libavformat/avidec.c:81:5: warning: missing braces around initializer [-Wmissing-braces] 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								72b0c9f55f 
								
							
								 
							
						 
						
							
							
								
								avidec: skip seek pos adjustment for non interleaved files.  
							
							Fixes Ticket327
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								46eaaad8dd 
								
							
								 
							
						 
						
							
							
								
								Detect NI-avi at playtime like mplayer.  
							
							Fixes Ticket333
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								652c772981 
								
							
								 
							
						 
						
							
							
								
								avidec: Fix XAN DPCM demuxing.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dfc2c4d900 
								
							
								 
							
						 
						
							
							
								
								lavf: use designated initialisers for all (de)muxers.  
							
							It's more readable and less prone to breakage. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0ebcdf5cda 
								
							
								 
							
						 
						
							
							
								
								Do not include mathematics.h in avutil.h  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c9403419b2 
								
							
								 
							
						 
						
							
							
								
								avidec: simplify convoluted flow in avi_load_index()  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d3f610c186 
								
							
								 
							
						 
						
							
							
								
								avidec: infer absolute vs relative index from first packet  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8b84af7488 
								
							
								 
							
						 
						
							
							
								
								avidec: Factor out the sync fucntionality.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a7e4342fc1 
								
							
								 
							
						 
						
							
							
								
								avidec: consider non video to contain only keyframes when seeking.  
							
							Fixes Ticket271
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								799a87d749 
								
							
								 
							
						 
						
							
							
								
								avidec: Ignore unknown stream types  
							
							Improves ticket131
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								603b8bc2a1 
								
							
								 
							
						 
						
							
							
								
								Deprecate av_open_input_* and remove their uses.  
							
							Deprecate the last remaining member of AVFormatParameters. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								919d7a345a 
								
							
								 
							
						 
						
							
							
								
								Replace DEBUG_SEEK/DEBUG_SI + av_log combinations by av_dlog.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d2d67e424f 
								
							
								 
							
						 
						
							
							
								
								Remove all uses of now deprecated metadata functions.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d7cf5639e7 
								
							
								 
							
						 
						
							
							
								
								Replace some printf instances in debug code by av_log.  
							
							
								
							
							
						 
						14 years ago