9bb54bb685 
								
							
								 
							
						 
						
							
							
								
								nutdec: more specific return codes for decode_syncpoint()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7ccc0ed6a0 
								
							
								 
							
						 
						
							
							
								
								nutdec: print error on invalid/unsupported fourcc style  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d8c772de53 
								
							
								 
							
						 
						
							
							
								
								nutdec: Always return a value from nut_read_timestamp()  
							
							The function is a callback that is called by ff_gen_search with
a constant stream index.
Avoid a false positive on older gcc version.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ebfb738fa4 
								
							
								 
							
						 
						
							
							
								
								nutdec: sanity check r_frame_rate  
							
							This fixes files that store a somewhat incorrect value.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bfe5454cd2 
								
							
								 
							
						 
						
							
							
								
								lavf: move ff_codec_get_tag() and ff_codec_get_id() definitions to internal.h  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d4bff9f1ab 
								
							
								 
							
						 
						
							
							
								
								nut: support textual data  
							
							Plain text (utf8 encoded) data can be muxed and demuxed in nut. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								73581afe01 
								
							
								 
							
						 
						
							
							
								
								nutdec: fix integer overflow  
							
							Fixes CID700575
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bb502411dd 
								
							
								 
							
						 
						
							
							
								
								nutdec: check return value of av_new_packet()  
							
							Fixes CID733173.
Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1bd442c276 
								
							
								 
							
						 
						
							
							
								
								nut: prioritize native tags  
							
							Use native tags instead of avi ones, simplifies a lot raw video codecs
handling. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								92281850a2 
								
							
								 
							
						 
						
							
							
								
								nut: support pcm codecs not mapped in avi  
							
							The native tags will be used when available. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								72d30b2792 
								
							
								 
							
						 
						
							
							
								
								nut: add do {} while (0) to GET_V  
							
							Make it consistent with the other function-like macros. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e3fb5bc147 
								
							
								 
							
						 
						
							
							
								
								nut: store and read the r_frame_rate  
							
							With this, when we use a finer timebase than neccessary to store
durations the demuxer still knows what the original timebase was.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c402d36afa 
								
							
								 
							
						 
						
							
							
								
								nutdec: fix get_vb_trace() / -DTRACE compile  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								83655442fa 
								
							
								 
							
						 
						
							
							
								
								nutdec: Remove unused and broken debug function stub  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								93e81ee81c 
								
							
								 
							
						 
						
							
							
								
								nutdec: const correctness for get_v_trace/get_s_trace function arguments  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fb96ac469a 
								
							
								 
							
						 
						
							
							
								
								nutdec: fix mixup of nb_streams and timebase_count  
							
							Fixes out of array read, should fix ffprove fate failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6ab1166c77 
								
							
								 
							
						 
						
							
							
								
								nutdec: fix type of intermediate variable for ts calculation.  
							
							Prior to this it could theoretically become negative and read
out of array.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								73b40dafc8 
								
							
								 
							
						 
						
							
							
								
								Use correct format identifier for uint64_t.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e6a045ba56 
								
							
								 
							
						 
						
							
							
								
								nutdec: Flip the direction for seeking with an index in the failure case.  
							
							This is closer to how seeking works without an index
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cebbaf578d 
								
							
								 
							
						 
						
							
							
								
								nutdec: improve information in error message  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								36ef5369ee 
								
							
								 
							
						 
						
							
							
								
								Replace all CODEC_ID_* with AV_CODEC_ID_*  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6774247a9d 
								
							
								 
							
						 
						
							
							
								
								avformat: Drop pointless "format" from container long names  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ac2d3b0f6e 
								
							
								 
							
						 
						
							
							
								
								nutdec: set duration_estimation_method  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3233ad4b44 
								
							
								 
							
						 
						
							
							
								
								nutdec: estimate duration from last syncpoint  
							
							Previously nut used the fallback of estimation by bitrate.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e2c95e6bd8 
								
							
								 
							
						 
						
							
							
								
								nutdec: remove assert that is wrong for some new duration code.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9d230ba924 
								
							
								 
							
						 
						
							
							
								
								nutdec: check that filesize is valid before using it.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1f3f7bd444 
								
							
								 
							
						 
						
							
							
								
								Add AVFMT_SEEK_TO_PTS to nut demuxer flags  
							
							Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								370211f470 
								
							
								 
							
						 
						
							
							
								
								nutdec: minor simplification.  
							
							Also fixes an (incorrect) "control reaches end of non-void function"
warning with some compilers.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1d128e5814 
								
							
								 
							
						 
						
							
							
								
								nutdec: replace assert with av_assert0.  
							
							Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9d72c0527c 
								
							
								 
							
						 
						
							
							
								
								nutdec: add malloc check and fix const to non-const conversion warnings  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								679481b3b6 
								
							
								 
							
						 
						
							
							
								
								Drop some pointless #ifdefs.  
							
							The files are only compiled if the #ifdef conditions are met. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a559d65c07 
								
							
								 
							
						 
						
							
							
								
								nutdec: K&R formatting cosmetics  
							
							Signed-off-by: Diego Biurrun <diego@biurrun.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								20234a4bd7 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Align muxer/demuxer declarations  
							
							Also add missing trailing commas, break long codec_tag lines and
add spaces in codec_tag declarations.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6e9651d106 
								
							
								 
							
						 
						
							
							
								
								lavf: remove AVFormatParameters from AVFormatContext.read_header signature  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c3f9ebf743 
								
							
								 
							
						 
						
							
							
								
								lavf: make av_set_pts_info private.  
							
							It's supposed to be called only from (de)muxers. 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								a2faa95151 
								
							
								 
							
						 
						
							
							
								
								lavf: make some seeking functions private  
							
							Specifically av_update_cur_dts(), av_seek_frame_binary() and
av_gen_search().
They are not supposed to be called outside lavf. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1fa395e471 
								
							
								 
							
						 
						
							
							
								
								lavf: use avpriv_ prefix for ff_new_chapter().  
							
							It's 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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								d2d67e424f 
								
							
								 
							
						 
						
							
							
								
								Remove all uses of now deprecated metadata functions.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								14086341bf 
								
							
								 
							
						 
						
							
							
								
								nutdec: remove unused variable  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								761ad42968 
								
							
								 
							
						 
						
							
							
								
								lavf: remove FF_API_MAX_STREAMS cruft  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8978fedaee 
								
							
								 
							
						 
						
							
							
								
								avio: introduce an AVIOContext.seekable field  
							
							Use it instead of url_is_streamed and AVIOContext.is_streamed. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b64030f26d 
								
							
								 
							
						 
						
							
							
								
								avio: make get_checksum() internal.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4c4427a75d 
								
							
								 
							
						 
						
							
							
								
								avio: make init_checksum() internal.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2912e87a6c 
								
							
								 
							
						 
						
							
							
								
								Replace FFmpeg with Libav in licence headers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4839c192de 
								
							
								 
							
						 
						
							
							
								
								lavf: move ff_get_v from avio.h to avio_internal.h  
							
							And rename it to ffio_read_varlen.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago