0dcfccaa69 
								
							
								 
							
						 
						
							
							
								
								auenc: strict check for supported codec  
							
							Also check number of streams and give error message why muxing failed.
This prevents muxing unsupported codec with known and supported tag.
Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								10e4905dd9 
								
							
								 
							
						 
						
							
							
								
								auenc: remove put_au_header() and merge its code into au_write_header  
							
							Such level of abstraction is pointless.
Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2e230cf1b5 
								
							
								 
							
						 
						
							
							
								
								au: switch to ff_pcm_read_packet() again, after the merge  
							
							This fixes G722 durations
Suggested-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fd9147f114 
								
							
								 
							
						 
						
							
							
								
								au: cosmetics: pretty-print and remove pointless comments  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c88d245c98 
								
							
								 
							
						 
						
							
							
								
								au: use ff_raw_write_packet()  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								af68a2baae 
								
							
								 
							
						 
						
							
							
								
								au: use %u when printing id and channels since they are unsigned  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c837b38dd3 
								
							
								 
							
						 
						
							
							
								
								au: move skipping of unused data to before parameter validation  
							
							Also do not unnecessarily skip 0 bytes. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2613de8805 
								
							
								 
							
						 
						
							
							
								
								au: do not set pkt->size directly  
							
							It is already set by av_get_packet() even for partial reads. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f7a3c540c5 
								
							
								 
							
						 
						
							
							
								
								au: remove unnecessary casts  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bdd00e2d1b 
								
							
								 
							
						 
						
							
							
								
								au: set stream start time and packet durations  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								47d029a4c1 
								
							
								 
							
						 
						
							
							
								
								au: validate sample rate  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fb48f825e3 
								
							
								 
							
						 
						
							
							
								
								au: do not arbitrarily limit channel count  
							
							Nothing in the AU specification sets a limit on channel count.
We only need to avoid an overflow in the packet size calculation. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2f8207b1c6 
								
							
								 
							
						 
						
							
							
								
								au: return AVERROR codes instead of -1  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9a7b56883d 
								
							
								 
							
						 
						
							
							
								
								au: set bit rate  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bd4cdef5a8 
								
							
								 
							
						 
						
							
							
								
								au: set block_align and use it in au_read_packet()  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3f98848d6e 
								
							
								 
							
						 
						
							
							
								
								au: validate bits-per-sample separately from codec tag  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f2214c6224 
								
							
								 
							
						 
						
							
							
								
								au: use ff_raw_write_packet()  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								507956824c 
								
							
								 
							
						 
						
							
							
								
								auenc: do not write invalid file size  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f3298f1299 
								
							
								 
							
						 
						
							
							
								
								Return proper error code after av_log_ask_for_sample()  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								76877beada 
								
							
								 
							
						 
						
							
							
								
								au: return meaningful error codes  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c35f0e8495 
								
							
								 
							
						 
						
							
							
								
								au: Reorder code so that both muxer and demuxer are under #ifdefs  
							
							This reduces code size when either piece has been disabled. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c090b5427d 
								
							
								 
							
						 
						
							
							
								
								audec: use ff_pcm_read_packet()  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								765debf51f 
								
							
								 
							
						 
						
							
							
								
								auenc: remove pointless assigment  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bfe5454cd2 
								
							
								 
							
						 
						
							
							
								
								lavf: move ff_codec_get_tag() and ff_codec_get_id() definitions to internal.h  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								95903e3cfd 
								
							
								 
							
						 
						
							
							
								
								Support G.722 in Sun AU.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								df651cf42e 
								
							
								 
							
						 
						
							
							
								
								Add an annotation field as required by the specification when muxing Sun AU.  
							
							Reviewed-by: Paul B Mahol 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								92b8c9d89e 
								
							
								 
							
						 
						
							
							
								
								lavf/au: check bits per coded sample.  
							
							Without that, it would repeatedly produce empty packets
if the codec if forced to something invalid.
Fix trac ticket #1652 . 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								8f63f241d4 
								
							
								 
							
						 
						
							
							
								
								Remove some useless code that duplicates av_get_packet.  
							
							Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7effbee66c 
								
							
								 
							
						 
						
							
							
								
								Mark truncated packets as corrupt in av_get_packet.  
							
							Manually remove that flag again for formats that read an arbitrary
amount of data and thus truncation is not an error.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0ca4414d0f 
								
							
								 
							
						 
						
							
							
								
								audemux: Add a sanity check for the number of channels  
							
							Fixes a division by 0.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								52fdaf27f7 
								
							
								 
							
						 
						
							
							
								
								audemux: Fix potential integer overflow leading to a division by 0  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8aa57b7b5e 
								
							
								 
							
						 
						
							
							
								
								audemux: Check channels isnt 0  
							
							Fixes a division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								6e9651d106 
								
							
								 
							
						 
						
							
							
								
								lavf: remove AVFormatParameters from AVFormatContext.read_header signature  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c3f9ebf743 
								
							
								 
							
						 
						
							
							
								
								lavf: make av_set_pts_info private.  
							
							It's supposed to be called only from (de)muxers. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2f5df0b12c 
								
							
								 
							
						 
						
							
							
								
								Replace ffmpeg references with more accurate libav* references.  
							
							
								
							
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								eb8b325202 
								
							
								 
							
						 
						
							
							
								
								Support streaming .au files.  
							
							FFmpeg writes data_size as AU_UNKNOWN_SIZE, make demuxer not
fail when data_size is set to this value.
Should fix trac issue #394 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								daa6237229 
								
							
								 
							
						 
						
							
							
								
								au: reuse the result of the previous call to av_get_bits_per_sample()  
							
							Avoid an unnecessary call to the function, slighlty more
robust/readable. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								93263dc19e 
								
							
								 
							
						 
						
							
							
								
								au: add computation for duration  
							
							Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dfc2c4d900 
								
							
								 
							
						 
						
							
							
								
								lavf: use designated initialisers for all (de)muxers.  
							
							It's more readable and less prone to breakage. 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								b7f2fdde74 
								
							
								 
							
						 
						
							
							
								
								avio: rename put_flush_packet -> avio_flush  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								a2704c9712 
								
							
								 
							
						 
						
							
							
								
								avio: add avio_tell macro as a replacement for url_ftell  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago