5eec5a79da 
								
							
								 
							
						 
						
							
							
								
								jpeg: handle progressive in second field of interlaced.  
							
							Progressive data is allocated later in decode_sof(), not allocating
that data leads to NULL dereferences.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2bcbd98459 
								
							
								 
							
						 
						
							
							
								
								Remove lowres video decoding  
							
							This feature is complex, of questionable utility, and slows down
normal decoding.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a92be9b856 
								
							
								 
							
						 
						
							
							
								
								Replace memset(0) by zero initializations.  
							
							Also remove one pointless zero initialization in rangecoder.c. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3574a85ce5 
								
							
								 
							
						 
						
							
							
								
								Replace computations of remaining bits with calls to get_bits_left().  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1c4717be4f 
								
							
								 
							
						 
						
							
							
								
								mjpegdec: use correct variable in av_log invocation  
							
							libavcodec/mjpegdec.c:1463: warning: format ‘%x’ expects type ‘unsigned int’, but argument 5 has type ‘const uint8_t *’ 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ab492ca2ab 
								
							
								 
							
						 
						
							
							
								
								mjpeg: abort decoding if packet is too large.  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9cf0841ef3 
								
							
								 
							
						 
						
							
							
								
								dsputil: Add ff_ prefix to the dsputil*_init* functions  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e96b4a53df 
								
							
								 
							
						 
						
							
							
								
								vlc/rl: Add ff_ prefix to the nonstatic symbols  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0880503fbb 
								
							
								 
							
						 
						
							
							
								
								mjpegdec: use av_fast_padded_malloc()  
							
							also check for allocation failure
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								99ace37e68 
								
							
								 
							
						 
						
							
							
								
								lavc: remove disabled FF_API_MJPEG_GLOBAL_OPTS cruft.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8549cf073b 
								
							
								 
							
						 
						
							
							
								
								mjpegdec: K&R formatting cosmetics  
							
							Signed-off-by: Diego Biurrun <diego@biurrun.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e268a352af 
								
							
								 
							
						 
						
							
							
								
								mjpegdec: parse RSTn to prevent skipping other data in mjpeg_decode_scan  
							
							Check explicitly if enough bits are left to prevent an infinite loop
when the bitstream buffer is not followed by zero-padding.
Based on patches by Michael Niedermayer <michaelni@gmx.at>. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4bf3c8f226 
								
							
								 
							
						 
						
							
							
								
								mov: Don't stick the QuickTime field ordering atom in extradata.  
							
							The 'fiel' atoms can be found in H.264 tracks clobbering the extradata.
MJPEG supports non field based extradata, and this data should be
preserved when copying. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								da9cea77e3 
								
							
								 
							
						 
						
							
							
								
								Fix a bunch of common typos.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9abc98737f 
								
							
								 
							
						 
						
							
							
								
								lavc: replace references to deprecated AVCodecContext.error_recognition to use AVCodecContext.err_recognition  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								145f741e11 
								
							
								 
							
						 
						
							
							
								
								AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1f0c7020a1 
								
							
								 
							
						 
						
							
							
								
								mjpegdec: add 'extern_huff' private option.  
							
							Deprecate CODEC_FLAG_EXTERN_HUFF 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a18e04bcf9 
								
							
								 
							
						 
						
							
							
								
								mjpeg: treat external huffman table setup failure as codec init failure if external huffman table use requested  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								21d7037234 
								
							
								 
							
						 
						
							
							
								
								mjpeg: propagate decode errors from ff_mjpeg_decode_sos and ff_mjpeg_decode_dqt  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ec6402b7c5 
								
							
								 
							
						 
						
							
							
								
								lavc: use designated initialisers for all codecs.  
							
							It's more readable and less prone to breakage. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c0fa61a97 
								
							
								 
							
						 
						
							
							
								
								jpegdec: actually search for and parse RSTn  
							
							Fixes decoding of MJPEG files produced by some UVC Logitec web cameras,
such as "Notebook Pro" and "HD C910".
References:
http://trac.videolan.org/vlc/ticket/4215 
http://ffmpeg.org/trac/ffmpeg/ticket/267 
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Reviewed-by: Kostya <kostya.shishkov@gmail.com>
(cherry picked from commit 7b8ed831eb 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								356be9307c 
								
							
								 
							
						 
						
							
							
								
								Remove unused structs and tables.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b27565b143 
								
							
								 
							
						 
						
							
							
								
								Remove statements immediately following unconditional jumps  
							
							This removes a number of compiler warnings.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								050f2b3e7f 
								
							
								 
							
						 
						
							
							
								
								mjpeg: remove pointless braces around block of code  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								975a1447f7 
								
							
								 
							
						 
						
							
							
								
								Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.  
							
							Signed-off-by: Diego Biurrun <diego@biurrun.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								76cd98b445 
								
							
								 
							
						 
						
							
							
								
								mjpeg: Detect overreads in mjpeg_decode_scan() and error out.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Ronald S. Bultje <rbultje@google.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e0e3b8b297 
								
							
								 
							
						 
						
							
							
								
								Add support for picture_ptr field in MJpegDecodeContext  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f16055eedf 
								
							
								 
							
						 
						
							
							
								
								Move MJPEG's input buffer preprocessing in separate public function  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8f0bd2c07d 
								
							
								 
							
						 
						
							
							
								
								Support reference picture defined by bitmask in MJPEG's SOS decoder  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2912e87a6c 
								
							
								 
							
						 
						
							
							
								
								Replace FFmpeg with Libav in licence headers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2e3c56a29f 
								
							
								 
							
						 
						
							
							
								
								Set maximum lowres value for the MJPEG decoder to 3.  
							
							While 4 works for some samples, 3 is the correct value since 8x8
DCT is used by (m)jpeg.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								737eb5976f 
								
							
								 
							
						 
						
							
							
								
								Merge libavcore into libavutil  
							
							It is pretty hopeless that other considerable projects will adopt
libavutil alone in other projects. Projects that need small footprint
are better off with more specialized libraries such as gnulib or rather
just copy the necessary parts that they need. With this in mind, nobody
is helped by having libavutil and libavcore split. In order to ease
maintenance inside and around FFmpeg and to reduce confusion where to
put common code, avcore's functionality is merged (back) to avutil.
Signed-off-by: Reinhard Tartler <siretart@tauware.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dfd2a005eb 
								
							
								 
							
						 
						
							
							
								
								Replace dprintf with av_dlog  
							
							dprintf clashes with POSIX.1-2008 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d36beb3f69 
								
							
								 
							
						 
						
							
							
								
								Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.  
							
							None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bf5f9b528b 
								
							
								 
							
						 
						
							
							
								
								Sanitise get_bits macros, part 1  
							
							Some of the macros in get_bits.h include a final semicolon,
some do not.  This removes these or adds do {} while(0) around
the macros as appropriate and adds semicolons where needed in
calling code.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a0f593d00d 
								
							
								 
							
						 
						
							
							
								
								Values >4 for lowres corrupt output.  
							
							Originally committed as revision 26386 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4c3267aaad 
								
							
								 
							
						 
						
							
							
								
								Fix memleak in mjpeg decoder.  
							
							Originally committed as revision 25549 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a2d4dfd493 
								
							
								 
							
						 
						
							
							
								
								Optimize EOB check in mjpeg decode_block() by adjusting the VLC symbol.  
							
							Originally committed as revision 25548 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e4463f21ee 
								
							
								 
							
						 
						
							
							
								
								Simplify last coeff check in mjpeg decode_block()  
							
							Originally committed as revision 25547 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2111a191eb 
								
							
								 
							
						 
						
							
							
								
								Check index in mjpeg AC decode against overflowing.  
							
							This fixes a possibly exploitable buffer overflow and it will likely also be needed for future overreading fixes.
Originally committed as revision 25546 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5675a11f92 
								
							
								 
							
						 
						
							
							
								
								Add a seperate VLC table for progressive jpeg so we dont have to subtract 16 in the inner loop.  
							
							Originally committed as revision 25545 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8870b25140 
								
							
								 
							
						 
						
							
							
								
								Factor code&0xf out of if() in decode_block_progressive().  
							
							Originally committed as revision 25544 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7f4a1e8f6c 
								
							
								 
							
						 
						
							
							
								
								Cleanup decode_block_progressive()  
							
							Originally committed as revision 25543 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								614252863d 
								
							
								 
							
						 
						
							
							
								
								Factorize  ((unsigned) code) >> 4 out of decode_block_progressive() in jpeg.  
							
							Originally committed as revision 25542 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								76c80ef569 
								
							
								 
							
						 
						
							
							
								
								Move if() in mjpeg decode_block() to simplify condition.  
							
							Originally committed as revision 25541 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1932182498 
								
							
								 
							
						 
						
							
							
								
								Simplify build_vlc() by using init_vlc_sparse() in mjpeg.  
							
							Originally committed as revision 25540 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e16f217ceb 
								
							
								 
							
						 
						
							
							
								
								Use new imgutils.h API names, fix deprecation warnings.  
							
							Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4c399dc82b 
								
							
								 
							
						 
						
							
							
								
								Fix undefined expressions that use multiple calls to get_bits().  
							
							Because the order of evaluation of subexpressions is undefined, two
get_bits() calls may not be part of the same expression.
See also r24902.
Originally committed as revision 24906 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6ce9b4310c 
								
							
								 
							
						 
						
							
							
								
								Remove use of the deprecated function avcodec_check_dimensions(), use  
							
							av_check_image_size() instead.
Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8fc0162ac4 
								
							
								 
							
						 
						
							
							
								
								Add av_ prefix to bswap macros  
							
							Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago