ca9eb9305a 
								
							
								 
							
						 
						
							
							
								
								mpegvideo_enc: fix edge emulation of dimension%16 != 0 for YUV != 420  
							
							Fixes Ticket2041
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c53d39e7f 
								
							
								 
							
						 
						
							
							
								
								lavc: introduce VideoDSPContext  
							
							Move some functions from dsputil. The idea is that videodsp contains
functions that are useful for a large and varied set of video decoders.
Currently, it contains emulated_edge_mc() and prefetch().
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f1d8763a02 
								
							
								 
							
						 
						
							
							
								
								mpegvideo: allocate scratch buffers after linesize is known  
							
							Since we can't know which stride a custom get_buffer() implementation is
going to use we have to allocate this scratch buffers after the linesize
is known. It was pretty safe for 8 bit per pixel pixel formats since we
always allocated memory for up to 16 bits per pixel. It broke hoever
with cmdutis.c's alloc_buffer() and high pixel bit depth since it
allocated larger edges than mpegvideo expected.
Fixes fuzzed sample nasa-8s2.ts_s244342. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								633ae5a210 
								
							
								 
							
						 
						
							
							
								
								mjpegenc: fix 444 block count so it is below 10  
							
							Fixes Ticket1990
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								388241efa2 
								
							
								 
							
						 
						
							
							
								
								mpegvideo_enc/rv20: width and height must be multiple of 4  
							
							RealPlayer does not play rv20 files when sizes are not multiple of 4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fef75ef200 
								
							
								 
							
						 
						
							
							
								
								mpegvideo_enc/rv10: width and hieghtmust be multiple of 16  
							
							RealPlayer does not play correctly rv10 files when sizes are not multiple of 16
"RealVideo Encoder 1.0 supports any size image that is a multiple of sixteen pixels."
Reviewed-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a01679586c 
								
							
								 
							
						 
						
							
							
								
								mpeg1video: fix regression with slices != threads  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6d7effa9bd 
								
							
								 
							
						 
						
							
							
								
								mpegvideo_enc: use av_log() in debug code  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b023392f34 
								
							
								 
							
						 
						
							
							
								
								mpegvideo: remove #if/define PARANOID code  
							
							This code never did anything as far as i can remember
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9f02d4ed0f 
								
							
								 
							
						 
						
							
							
								
								mjpegenc: yuvj444p support  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c1a02e884a 
								
							
								 
							
						 
						
							
							
								
								pixdesc: add av_pix_fmt_get_chroma_sub_sample  
							
							Deprecate avcodec_get_chroma_sub_sample. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3556e7ce73 
								
							
								 
							
						 
						
							
							
								
								mpegvideo enc: choose VBV buffer size for mpeg4 when none is specified instead of failing  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1856162caa 
								
							
								 
							
						 
						
							
							
								
								mpegvideo enc: choose VBV buffer size for mpeg1/2 when none is specified instead of failing  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c753b56b4d 
								
							
								 
							
						 
						
							
							
								
								ff_convert_matrix: fix integer overflow  
							
							Fixes CID608053
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5537c92f84 
								
							
								 
							
						 
						
							
							
								
								mpegvideoenc: check return value of ff_MPV_frame_start()  
							
							Fixes CID703622
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9734b8ba56 
								
							
								 
							
						 
						
							
							
								
								Move avutil tables only used in libavcodec to libavcodec.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								716d413c13 
								
							
								 
							
						 
						
							
							
								
								Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1218777ffd 
								
							
								 
							
						 
						
							
							
								
								avcodec: Convert some commented-out printf/av_log instances to av_dlog  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9c6cf7f2c9 
								
							
								 
							
						 
						
							
							
								
								avcodec: Drop silly and/or broken printf debug output  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6f6b0311a3 
								
							
								 
							
						 
						
							
							
								
								avcodec: Drop some silly commented-out av_log() invocations  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6b33e91899 
								
							
								 
							
						 
						
							
							
								
								mpegvideo: factorize ff_dct_encode_init()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a990a30883 
								
							
								 
							
						 
						
							
							
								
								ratecontrol: correct predictor in case of stuffing  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e6153f173a 
								
							
								 
							
						 
						
							
							
								
								avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								19000122a4 
								
							
								 
							
						 
						
							
							
								
								mpegvideo_enc: remove assert that has become obsolete with the new API  
							
							It now just checks uninitialized and unused data.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d211547ddd 
								
							
								 
							
						 
						
							
							
								
								x86: mpegvideoenc: Split optimizations off into a separate file  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a5a0dedf11 
								
							
								 
							
						 
						
							
							
								
								Fix duplicate packet init introduced by  7f9aaa4 
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								677e763a55 
								
							
								 
							
						 
						
							
							
								
								mpegvideo_enc: remove stray duplicate line from  7f9aaa4 
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7f9aaa499b 
								
							
								 
							
						 
						
							
							
								
								mpegvideo_enc: don't use deprecated avcodec_encode_video().  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e8c4022018 
								
							
								 
							
						 
						
							
							
								
								h263penc: fix multitheraded encoding  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e2c54d4d72 
								
							
								 
							
						 
						
							
							
								
								mpegvideo_enc: reset mb_x/y before writing the headers  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7a851153d3 
								
							
								 
							
						 
						
							
							
								
								mpegvideo: convert mpegvideo_common.h to a .c file  
							
							This file defines a single, huge function, MPV_motion(), which
although being declared inline is not actually inlined by the
compiler (for good reason).  There is thus no sense in defining
this function in a header file, resulting in multiple copies of
it in the final library.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								36ef5369ee 
								
							
								 
							
						 
						
							
							
								
								Replace all CODEC_ID_* with AV_CODEC_ID_*  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f8dbbe5464 
								
							
								 
							
						 
						
							
							
								
								mpegvideo_enc: switch some assert to av_assert  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f72e0d9a9f 
								
							
								 
							
						 
						
							
							
								
								mpegvideo_enc: remove assert that has become obsolete with the new API  
							
							it now just checks uninitialized and unused data.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								18d7bea695 
								
							
								 
							
						 
						
							
							
								
								wmv2enc: fix rounding flag.  
							
							Fixes Ticket1467
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bb850480e1 
								
							
								 
							
						 
						
							
							
								
								mjpegenc: support slice multithreading  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4991cbafaf 
								
							
								 
							
						 
						
							
							
								
								mpegvideo_enc: Fix chroma edge size  
							
							Fixes ticket1303
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6108e1be2f 
								
							
								 
							
						 
						
							
							
								
								wmvenc: check if width is multiple of 2  
							
							The width of wmv1/2 video must be multiple of 2 or win32 codec will fail to decode it (WMP displays black screen).
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6b0a0dc555 
								
							
								 
							
						 
						
							
							
								
								mpeg2enc: check input dimensions  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d5df0df848 
								
							
								 
							
						 
						
							
							
								
								mpeg1enc: check input dimensions  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f153dfc9e4 
								
							
								 
							
						 
						
							
							
								
								h263enc: test that dimensions are a multiple of 4  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								70f133fb54 
								
							
								 
							
						 
						
							
							
								
								h263enc: check w/h for validity  
							
							Fixes Ticket1063
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c354576457 
								
							
								 
							
						 
						
							
							
								
								mpegvideo_enc: fix dts  
							
							Fixes Ticket1200
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								00c3b67b8a 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Align codec declarations  
							
							Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c450cf1572 
								
							
								 
							
						 
						
							
							
								
								libavcodec: be less picky on nonsense rc_max_rate / rc_buffer_size combinations.  
							
							Some applications use these combinations and to maintain ABI
compatibility with previous versions we should not suddenly
fail. Thus only display a warning for the newly detected cases
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								856c8e0a04 
								
							
								 
							
						 
						
							
							
								
								faandct: Remove FAAN_POSTSCALE define and related code.  
							
							It is not a user-accessible option and unlikely to ever be changed. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e22113cf1d 
								
							
								 
							
						 
						
							
							
								
								mpegvideo_enc: : switch to ff_alloc_packet2()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bf3a404572 
								
							
								 
							
						 
						
							
							
								
								mpegvideo: fix constness error in ff_MPV_encode_picture()  
							
							The struct has some of its fields changed, thus is not strictly const.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								47c0ac96aa 
								
							
								 
							
						 
						
							
							
								
								Replace AVFrame pointer casts by proper struct member accesses.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bdc1220eeb 
								
							
								 
							
						 
						
							
							
								
								h263enc: Add an option for outputting info about MBs as side data  
							
							Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago