Michael Niedermayer
							
						 
						
							
							
							
								
							
								1860c66c54 
								
							
								 
							
						 
						
							
							
								
								matroskadec: increase padding on several more extradata allocations.  
							
							 
							
							 
							
							
								
							
							
							Inspired by: 5af569aa30  by alex
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Alex Converse
							
						 
						
							
							
							
								
							
								5af569aa30 
								
							
								 
							
						 
						
							
							
								
								matroskadec: Pad AAC extradata.  
							
							 
							
							 
							
							
								
							
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org 
(cherry picked from commit d2ee8c1779 )
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Martin Storsjö
							
						 
						
							
							
							
								
							
								9f9c45f4b6 
								
							
								 
							
						 
						
							
							
								
								movenc: Don't require frame_size to be set for modes other than mov  
							
							 
							
							 
							
							
								
							
							
							The field frame_size isn't written to the output anywhere except
than in mov.
This facilitates stream copy from formats that don't set frame_size.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Martin Storsjö
							
						 
						
							
							
							
								
							
								990a746cec 
								
							
								 
							
						 
						
							
							
								
								movenc: Reindent a block  
							
							 
							
							 
							
							
								
							
							
							Also add some space around operators and wrap a comment
that extends past the 80 char "limit"/guideline.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								5cb57a16ed 
								
							
								 
							
						 
						
							
							
								
								dv: Fix null pointer dereference due to ach=0  
							
							 
							
							 
							
							
								
							
							
							Fixes part2 of CVE-2011-3929
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Reviewed-by: Roman Shaposhnik <roman@shaposhnik.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								f9de136b17 
								
							
								 
							
						 
						
							
							
								
								dv: check stype  
							
							 
							
							 
							
							
								
							
							
							Fixes part1 of CVE-2011-3929
Possibly fixes part of CVE-2011-3936
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Reviewed-by: Roman Shaposhnik <roman@shaposhnik.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Martin Storsjö
							
						 
						
							
							
							
								
							
								33ec9ef96d 
								
							
								 
							
						 
						
							
							
								
								Add a tool for creating smooth streaming manifests  
							
							 
							
							 
							
							
								
							
							
							It can also optionally split the file into individual fragments,
which allows it to be served from any web server without any
server side support.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
					 
				
					
						
							
							
								   Martin Storsjö
							
						 
						
							
							
							
								
							
								bc7d05177f 
								
							
								 
							
						 
						
							
							
								
								movdec: Calculate an average bit rate for fragmented streams, too  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
					 
				
					
						
							
							
								   Martin Storsjö
							
						 
						
							
							
							
								
							
								3b5d4428ac 
								
							
								 
							
						 
						
							
							
								
								movenc: Write the sample rate instead of time scale in the stsd atom  
							
							 
							
							 
							
							
								
							
							
							For ismv/isma, the time scale might not be the same as the sample
rate.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
					 
				
					
						
							
							
								   Martin Storsjö
							
						 
						
							
							
							
								
							
								4ddd54dab4 
								
							
								 
							
						 
						
							
							
								
								movenc: Add a separate ismv/isma (smooth streaming) muxer  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
					 
				
					
						
							
							
								   Martin Storsjö
							
						 
						
							
							
							
								
							
								b613ff5e93 
								
							
								 
							
						 
						
							
							
								
								movenc: Allow the caller to decide on fragmentation  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Martin Storsjö
							
						 
						
							
							
							
								
							
								f1caf01d5e 
								
							
								 
							
						 
						
							
							
								
								libavformat: Add a flag for muxers that support write_packet(NULL) for flushing  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Martin Storsjö
							
						 
						
							
							
							
								
							
								83988d58ed 
								
							
								 
							
						 
						
							
							
								
								movenc: Add support for writing fragmented mov files  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
					 
				
					
						
							
							
								   Martin Storsjö
							
						 
						
							
							
							
								
							
								6ca3856894 
								
							
								 
							
						 
						
							
							
								
								movenc: Add a separate start_pts  
							
							 
							
							 
							
							
								
							
							
							This fixes calculation of trackDuration if the MOVIentry array
is cleared. This is required by the fragmentation support in the
next patch.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						14 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								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 
Author: Michael Niedermayer <michaelni@gmx.at>
Date:   Fri Dec 16 06:13:04 2011 +0100
    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>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								5c011706bc 
								
							
								 
							
						 
						
							
							
								
								nsvdec: Fix use of uninitialized streams.  
							
							 
							
							 
							
							
								
							
							
							Fixes CVE-2011-3940 (Out of bounds read resulting in out of bounds write)
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Carl Eugen Hoyos
							
						 
						
							
							
							
								
							
								76c3e76eb3 
								
							
								 
							
						 
						
							
							
								
								Allow user to force reading mov alias from absolute path.  
							
							 
							
							 
							
							
								
							
							
							Based on a work-around by Alex Zhukov.
Fixes ticket #935  
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								b8dd555c63 
								
							
								 
							
						 
						
							
							
								
								aud: remove unneeded field, audio_stream_index from context  
							
							 
							
							 
							
							
								
							
							
							There is only one stream, so it will always be index 0.
This also allows for removal of the private context. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								be14a37066 
								
							
								 
							
						 
						
							
							
								
								aud: fix time stamp calculation for ADPCM IMA WS  
							
							 
							
							 
							
							
								
							
							
							also allows for removing some unused context fields 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								10fef6bd6b 
								
							
								 
							
						 
						
							
							
								
								aud: simplify header parsing  
							
							 
							
							 
							
							
								
							
							
							also allows for removing some unused context fields 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								0e6a8b5cf7 
								
							
								 
							
						 
						
							
							
								
								aud: set pts_wrap_bits to 64.  
							
							 
							
							 
							
							
								
							
							
							Time stamps are not read from the bitstream, so no wrapping is needed. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								98c290cc08 
								
							
								 
							
						 
						
							
							
								
								cosmetics: indentation  
							
							 
							
							
								
							
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								d481227c54 
								
							
								 
							
						 
						
							
							
								
								aud: support Westwood SND1 audio in AUD files.  
							
							 
							
							 
							
							
								
							
							
							Fixes decoding of the handful of "death scream" samples from
"Command and Conquer" that use SND1. e.g.
http://samples.libav.org/game-formats/westwood-aud/nuyell1.aud 
http://samples.libav.org/game-formats/westwood-aud/nuyell7.aud  
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								02e7dbf5ad 
								
							
								 
							
						 
						
							
							
								
								adpcm_ima_ws: fix stereo decoding  
							
							 
							
							 
							
							
								
							
							
							Stereo ADPCM IMA WS is planar for VQA version 3 and 2-sample interleaved for
VQA version 2. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								220506d23f 
								
							
								 
							
						 
						
							
							
								
								avcodec: add a new codec_id for CRYO APC IMA ADPCM.  
							
							 
							
							 
							
							
								
							
							
							The stereo layout and extradata is significantly different from that in
Westwood IMA ADPCM, so a separate codec_id is warranted. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								4340a6363e 
								
							
								 
							
						 
						
							
							
								
								vqa: remove unused context fields, audio_samplerate and audio_bits  
							
							 
							
							
								
							
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								7e813d5933 
								
							
								 
							
						 
						
							
							
								
								vqa: clean up audio header parsing  
							
							 
							
							 
							
							
								
							
							
							Fix setting of bit_rate and bits_per_coded_sample.
Ask for sample for unsupported VQA versions. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								5b4c562897 
								
							
								 
							
						 
						
							
							
								
								vqa: set time base to frame rate as coded in the header.  
							
							 
							
							 
							
							
								
							
							
							According to Multimedia Wiki documentation, the frame rate is not always 15,
and the actual value can be found in the header. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								9ae846971f 
								
							
								 
							
						 
						
							
							
								
								vqa: set packet duration.  
							
							 
							
							 
							
							
								
							
							
							Also remove unused context field, audio_frame_counter. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								53ed79a260 
								
							
								 
							
						 
						
							
							
								
								vqa: use 1/sample_rate as the audio stream time base  
							
							 
							
							
								
							
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								e1ac69fa27 
								
							
								 
							
						 
						
							
							
								
								vqa: set stream start_time to 0.  
							
							 
							
							 
							
							
								
							
							
							The format has no coded timestamps and must use packet durations to generate
them. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Anton Khirnov
							
						 
						
							
							
							
								
							
								dc7ad30fa5 
								
							
								 
							
						 
						
							
							
								
								lavf: postpone removing av_close_input_file().  
							
							 
							
							 
							
							
								
							
							
							It has been deprecated only recently. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Piotr Tomasik
							
						 
						
							
							
							
								
							
								62d2a75b02 
								
							
								 
							
						 
						
							
							
								
								Added clockwise rotate values to metadata for 90 and 270 degrees  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Paul B Mahol
							
						 
						
							
							
							
								
							
								6813450209 
								
							
								 
							
						 
						
							
							
								
								lavf: replace remaining use of deprecated get_strz()  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								fa94f8a848 
								
							
								 
							
						 
						
							
							
								
								buildsys: Fix shared lib build of ffserver.  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Tomas Härdin
							
						 
						
							
							
							
								
							
								b720915be1 
								
							
								 
							
						 
						
							
							
								
								mxfdec: Fix files > 2 GiB  
							
							 
							
							 
							
							
								
							
							
							Accumulating into an int would cause overflow for files with essence
containers larger than 2 GiB. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Tomas Härdin
							
						 
						
							
							
							
								
							
								d8531a1c18 
								
							
								 
							
						 
						
							
							
								
								mxfdec: Handle small EditUnitByteCount  
							
							 
							
							 
							
							
								
							
							
							These are common with audio atoms. Without this the demuxer would read two
bytes at a time for a mono 16-bit file. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								f58d670002 
								
							
								 
							
						 
						
							
							
								
								movenc: Decrease default chunk merge limit to 1mb.  
							
							 
							
							 
							
							
								
							
							
							This reduces the delay when opening the video with quicktime.
Idea-by: Maksym Veremeyenko <verem@m1stereo.tv>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Maksym Veremeyenko
							
						 
						
							
							
							
								
							
								2aadff2e44 
								
							
								 
							
						 
						
							
							
								
								limit chunk size to 1GB  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Paul B Mahol
							
						 
						
							
							
							
								
							
								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  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								14d94a1952 
								
							
								 
							
						 
						
							
							
								
								avidec: Fix use of stream_index before validation of its range.  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Paul B Mahol
							
						 
						
							
							
							
								
							
								27ed027bcd 
								
							
								 
							
						 
						
							
							
								
								XWD encoder and decoder  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Janne Grunau
							
						 
						
							
							
							
								
							
								50a3f9a4bd 
								
							
								 
							
						 
						
							
							
								
								mxfdec: fix memleak on mxf_read_close()  
							
							 
							
							
								
							
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Paul B Mahol
							
						 
						
							
							
							
								
							
								c7579ad8e8 
								
							
								 
							
						 
						
							
							
								
								cafdec: replace deprecated get_strz()  
							
							 
							
							
								
							
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Paul B Mahol
							
						 
						
							
							
							
								
							
								a6ef7b3a77 
								
							
								 
							
						 
						
							
							
								
								cafenc: replace deprecated av_dbl2int()  
							
							 
							
							
								
							
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Justin Ruggles
							
						 
						
							
							
							
								
							
								e924a4ba71 
								
							
								 
							
						 
						
							
							
								
								westwood: split the AUD and VQA demuxers into separate files.  
							
							 
							
							 
							
							
								
							
							
							They have no code in common. 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								b9db728a1f 
								
							
								 
							
						 
						
							
							
								
								libavformat/libavformat.v: fix application name in comment  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								89ddff92a3 
								
							
								 
							
						 
						
							
							
								
								Revert "movenc: simplify handling of pcm vs. adpcm vs. other compressed codecs"  
							
							 
							
							 
							
							
								
							
							
							This reverts commit 8e8c51318c .
Fixes Ticket873
Conflicts:
	tests/ref/acodec/pcm_s16be
	tests/ref/acodec/pcm_s24be
	tests/ref/acodec/pcm_s32be
	tests/ref/acodec/pcm_s8
	tests/ref/lavf/mov
Approved-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
					 
				
					
						
							
							
								   Janne Grunau
							
						 
						
							
							
							
								
							
								15cea3695d 
								
							
								 
							
						 
						
							
							
								
								riff: fix invalid av_freep() calls on EOF in ff_read_riff_info  
							
							 
							
							
								
							
							
						 
						14 years ago  
					 
				
					
						
							
							
								   Janne Grunau
							
						 
						
							
							
							
								
							
								20ea14d0f8 
								
							
								 
							
						 
						
							
							
								
								mxfdec: fix memleak on av_realloc failures  
							
							 
							
							
								
							
							
						 
						14 years ago