64b7e7dcaf 
								
							
								 
							
						 
						
							
							
								
								cafdec: fix overflow checking in read_header()  
							
							Several compilers such as clang/icc/pathscale will optimize the check
pos + size < pos (assuming size > 0) into false, since signed integer
overflow is undefined behavior in C.  This breaks overflow checking.
Use a safe precondition check instead.
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a202541f9b 
								
							
								 
							
						 
						
							
							
								
								cafdec: Check duration before use.  
							
							Fix division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
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  
				
					
						
							
							
								 
						
							
							
							
								
							
								8aa6d899c0 
								
							
								 
							
						 
						
							
							
								
								cafdec: fix seeking with adpcm  
							
							Fixes Ticket1906
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e94f429474 
								
							
								 
							
						 
						
							
							
								
								cafdec: return right code if EOF is reached  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b1e190d0fd 
								
							
								 
							
						 
						
							
							
								
								Correctly signal EOF when demuxing caf files.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c2e2b3029e 
								
							
								 
							
						 
						
							
							
								
								cafdec: fix parsing of chunks which may have unused data  
							
							Specification mentions 'strg', 'mark', 'regn', 'info', .. chunks
to have data section size larger than chunk's current meaningful
content in order to reserve room for additional data.
Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9afb7061f9 
								
							
								 
							
						 
						
							
							
								
								mov_chan: Pass a separate AVIOContext for reading  
							
							This fixes crashes when called from rtpdec_qt, where
AVFormatContext->pb is null, a crash present since 3bab7cd128 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								36ef5369ee 
								
							
								 
							
						 
						
							
							
								
								Replace all CODEC_ID_* with AV_CODEC_ID_*  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0177b7d23a 
								
							
								 
							
						 
						
							
							
								
								Improve descriptiveness of a number of codec and container long names  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1749e12f45 
								
							
								 
							
						 
						
							
							
								
								cafdec: allow larger ALAC magic cookie  
							
							It already skips any extra bytes at the end, and apparently there are some
samples in the wild with larger 'kuki' chunks. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3bab7cd128 
								
							
								 
							
						 
						
							
							
								
								avformat: move 'chan' tag parsing to mov_chan.c to share with the CAF demuxer  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c0196a14b9 
								
							
								 
							
						 
						
							
							
								
								caf: use int64_t for num_packets  
							
							It is used to store a value read by avio_rb64(). 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f5a9c35f88 
								
							
								 
							
						 
						
							
							
								
								caf: fix 'pakt' chunk parsing  
							
							according to the CAF specification:
"... the value for mChunkSize can be greater than the actual valid content
of the packet table chunk" 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b0b77b9ca5 
								
							
								 
							
						 
						
							
							
								
								caf: support either old or new style ALAC magic kuki chunk  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								67ffcb9613 
								
							
								 
							
						 
						
							
							
								
								lavf: Make codec_tag arrays constant  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 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  
				
					
						
							
							
								 
						
							
							
							
								
							
								af701d42c3 
								
							
								 
							
						 
						
							
							
								
								cafdec: Check return value of avio_seek and avoid modifying state if it fails  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6e9651d106 
								
							
								 
							
						 
						
							
							
								
								lavf: remove AVFormatParameters from AVFormatContext.read_header signature  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f7a9b1deee 
								
							
								 
							
						 
						
							
							
								
								cafdec: fix regression introduced in  c7579ad8e8 
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c7579ad8e8 
								
							
								 
							
						 
						
							
							
								
								cafdec: replace deprecated get_strz()  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3383a53e7d 
								
							
								 
							
						 
						
							
							
								
								lavu: replace int/float punning functions  
							
							The existing functions defined in intfloat_readwrite.[ch] are
both slow and incorrect (infinities are not handled).
This introduces a new header with fast, inline conversion
functions using direct union punning assuming an IEEE-754
system, an assumption already made throughout the code.
The one use of Intel/Motorola extended 80-bit format is
replaced by simpler code sufficient under the present
constraints (positive normal values).
The old functions are marked deprecated and retained for
compatibility.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c3f9ebf743 
								
							
								 
							
						 
						
							
							
								
								lavf: make av_set_pts_info private.  
							
							It's supposed to be called only from (de)muxers. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4eb86d348f 
								
							
								 
							
						 
						
							
							
								
								Do not use strcpy for "strings" starting with \0.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d6af8e68c4 
								
							
								 
							
						 
						
							
							
								
								Cosmetics: Reindent after last commit.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								80af00b4b2 
								
							
								 
							
						 
						
							
							
								
								Support new ALAC magic cookie in caf files.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3b3bbdd3e6 
								
							
								 
							
						 
						
							
							
								
								lavf,lavd: replace av_new_stream->avformat_new_stream part I.  
							
							Trivial replacements with sed are done in this commit:
sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/' 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c10731e78b 
								
							
								 
							
						 
						
							
							
								
								lavf: deprecate AVFormatContext.file_size  
							
							It's too unreliable to be useful. avio_size() should be called instead. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								75f418064e 
								
							
								 
							
						 
						
							
							
								
								[cafdec] Check return value of avio_seek and avoid modifying state if it fails  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								88084eecdf 
								
							
								 
							
						 
						
							
							
								
								Use little endian for caf codec tags.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dfc2c4d900 
								
							
								 
							
						 
						
							
							
								
								lavf: use designated initialisers for all (de)muxers.  
							
							It's more readable and less prone to breakage. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ee8aecd23a 
								
							
								 
							
						 
						
							
							
								
								Do not include intfloat_readwrite.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  
				
					
						
							
							
								 
						
							
							
							
								
							
								91b782720f 
								
							
								 
							
						 
						
							
							
								
								Move channel chunk reading function to isom.c.  
							
							Move ff_read_chan_chunk() to isom.c and rename it as ff_mov_read_chan(). 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8bb5d1c39c 
								
							
								 
							
						 
						
							
							
								
								Support channel layout when demuxing caf files.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2a2146aac0 
								
							
								 
							
						 
						
							
							
								
								Extend unknown CAF chunk warning message: Print size.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8978fedaee 
								
							
								 
							
						 
						
							
							
								
								avio: introduce an AVIOContext.seekable field  
							
							Use it instead of url_is_streamed and AVIOContext.is_streamed. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2912e87a6c 
								
							
								 
							
						 
						
							
							
								
								Replace FFmpeg with Libav in licence headers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								45a8a02a41 
								
							
								 
							
						 
						
							
							
								
								lavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes sense  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								db44ea960d 
								
							
								 
							
						 
						
							
							
								
								avio: avio_ prefix for url_fsize  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 76aa876e69 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								66e5b1df36 
								
							
								 
							
						 
						
							
							
								
								avio: deprecate url_feof  
							
							AVIOContext.eof_reached should be used directly instead.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								76aa876e69 
								
							
								 
							
						 
						
							
							
								
								avio: avio_ prefix for url_fsize  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4118d66cb3 
								
							
								 
							
						 
						
							
							
								
								Revert "lavf: deprecate get_strz() in favor of avio_get_str"  
							
							This API is simply ridiculous.
We of course keep API/ABI compatibility only useage of the worse API
is reverted.
This reverts commit 773947ba76 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								384c9c2fa7 
								
							
								 
							
						 
						
							
							
								
								avio: add avio_tell macro as a replacement for url_ftell  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit a2704c9712 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								773947ba76 
								
							
								 
							
						 
						
							
							
								
								lavf: deprecate get_strz() in favor of avio_get_str  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit e16ead0716 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a2704c9712 
								
							
								 
							
						 
						
							
							
								
								avio: add avio_tell macro as a replacement for url_ftell  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e16ead0716 
								
							
								 
							
						 
						
							
							
								
								lavf: deprecate get_strz() in favor of avio_get_str  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								74b3f67c9c 
								
							
								 
							
						 
						
							
							
								
								lavf: replace all uses of url_fskip with avio_seek  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit e356fc57a2 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f59d8ff8cd 
								
							
								 
							
						 
						
							
							
								
								avio: avio_ prefix for url_fseek  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 6b4aa5dac8 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e356fc57a2 
								
							
								 
							
						 
						
							
							
								
								lavf: replace all uses of url_fskip with avio_seek  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago