af285072b5 
								
							
								 
							
						 
						
							
							
								
								ffv1enc: use default number of slices if unspecified  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								051dd2eea6 
								
							
								 
							
						 
						
							
							
								
								ffv1dec: print timestamp at which a CRC mismatch happened  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								acf0283925 
								
							
								 
							
						 
						
							
							
								
								Set default ffv1 coder to -1.  
							
							Autoselect coder 1 instead of default coder if bits_per_raw_sample > 8.
Fixes ticket #1519 . 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4c4e125695 
								
							
								 
							
						 
						
							
							
								
								Cosmetics: Return AVERROR_INVALIDDATA from ffv1 encoder initialisation if invalid data was provided.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								08ed3e8bf4 
								
							
								 
							
						 
						
							
							
								
								Cosmetics: Move ffv1 encoder initialisation code.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f06269dda5 
								
							
								 
							
						 
						
							
							
								
								cosmetics: align more codecs declarations  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8554e21f79 
								
							
								 
							
						 
						
							
							
								
								ffv1enc: add yuva422p to .pix_fmts  
							
							This was forgotten in 4e4634aa16 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								38c9ebd2a9 
								
							
								 
							
						 
						
							
							
								
								ffv1dec: print more information for -debug 1  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								730d079bf7 
								
							
								 
							
						 
						
							
							
								
								ffv1: fix log level of FF_DEBUG_PICT_INFO  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9ebe6e3910 
								
							
								 
							
						 
						
							
							
								
								ffv1: fix integer overflow in quant table initialization  
							
							Fixes part of Ticket1372
Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								97c281d5b7 
								
							
								 
							
						 
						
							
							
								
								ffv1: fix crash caused by version becoming inconsistent  
							
							Fixes part of Ticket1372
Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								21fdf1ccf0 
								
							
								 
							
						 
						
							
							
								
								ffv1: fix reading global header with CRC  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e15f1286e6 
								
							
								 
							
						 
						
							
							
								
								ffv1: fix decoder state_transition table  
							
							This fixes a regression with ffv1.1 coder=1 decoding
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4e4634aa16 
								
							
								 
							
						 
						
							
							
								
								Support yuva422p in ffv1.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								23fba3ed5c 
								
							
								 
							
						 
						
							
							
								
								Remove unused variable from ffv1 decoder.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fd6eba428e 
								
							
								 
							
						 
						
							
							
								
								ffv1: 10l add forgotten avclass  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								123dd9346b 
								
							
								 
							
						 
						
							
							
								
								ffv1: add slicecrc option  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a4b58fd9e8 
								
							
								 
							
						 
						
							
							
								
								ffv1: add examples of supported slices counts  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cab15f9db4 
								
							
								 
							
						 
						
							
							
								
								ffv1: remove clear_state(), it has become unused  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								83bf9fb6ec 
								
							
								 
							
						 
						
							
							
								
								ffv1: move clear_state() to clear_slice_state() in encoding threads  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								68a9194bb6 
								
							
								 
							
						 
						
							
							
								
								ffv1: indent  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3f4c0dad16 
								
							
								 
							
						 
						
							
							
								
								ffv1: move init_slice_state() into the decoder threads.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								60217b5b9c 
								
							
								 
							
						 
						
							
							
								
								ffv1: Remove slice count field with 1.3 and just count slices.  
							
							This field was problematic because in case of damaged slices it can be
lost
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3ed6917ab8 
								
							
								 
							
						 
						
							
							
								
								ffv1: store slice size with all slices in 1.3  
							
							This simplifies handling by removing a special case.
Its also needed to make the next change possible.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c24ca7b88e 
								
							
								 
							
						 
						
							
							
								
								ffv1: add 1 status byte to slices in in case crcs are stored too.  
							
							This will allow storing of information about corrected and uncorrectable
errors.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0c27854532 
								
							
								 
							
						 
						
							
							
								
								ffv1: Always store slice size when error reobustness is enabled.  
							
							This simplifies finding slices within a damaged bitstream.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								16524d1be0 
								
							
								 
							
						 
						
							
							
								
								ffv1: include solution hint in the slice error message  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fe5bc46f60 
								
							
								 
							
						 
						
							
							
								
								ffv1: support vlc mode in 1.3  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3158160334 
								
							
								 
							
						 
						
							
							
								
								ffv1: move the decoder side ac->vlc switch to decode_slice()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								44f789c092 
								
							
								 
							
						 
						
							
							
								
								ffv1: allow selecting 1.3 by using -level  
							
							Note, 1.3 is not finalized and the bitstream will still change
do not use it yet. This option is just to make playing with it
easier, otherwise one would have to edit the source
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e37419a806 
								
							
								 
							
						 
						
							
							
								
								ffv1: move ac->vlc switch to encode_slice()  
							
							This will allow us to use vlc coding in 1.3 too
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								abec6549ae 
								
							
								 
							
						 
						
							
							
								
								ffv1dec: Require a valid keyframe for decoding non keyframes.  
							
							Before this the context could become inconsistent, this lead to a null ptr
dereference.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								044f7275d3 
								
							
								 
							
						 
						
							
							
								
								ffv1: add optional per slice CRCs to detect undamaged slices.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b4fc53856d 
								
							
								 
							
						 
						
							
							
								
								ffv1: move most fields from the frame header to the slice headers with ffv1.3  
							
							This will allow decoding a single undamaged slice even if all others are lost
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9408316a85 
								
							
								 
							
						 
						
							
							
								
								ffv1: refactor slice decoding init loop so that the first is less a special case  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8456089f50 
								
							
								 
							
						 
						
							
							
								
								ffv1: clear slice state in decode_slice()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c7a435aab2 
								
							
								 
							
						 
						
							
							
								
								ffv1: split clear_slice_state() out so individual slices can be cleared.  
							
							This allows us to clear outside of the main thread for example.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								32883c0667 
								
							
								 
							
						 
						
							
							
								
								ffv1: split init_slice_state() out so individual slices can be inited  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d7a4c43f18 
								
							
								 
							
						 
						
							
							
								
								ffv1: Add a CRC check to the global header with version 1.3  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fa1b2c8e18 
								
							
								 
							
						 
						
							
							
								
								ffv1: attempt to workaround intel CC fate issue.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2b8374e920 
								
							
								 
							
						 
						
							
							
								
								ffv1: Fix size mismatch in encode_line.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1d80c8db27 
								
							
								 
							
						 
						
							
							
								
								ffv1: set slice geometry based on user specified slices.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8dfbc1c5cf 
								
							
								 
							
						 
						
							
							
								
								ffv1: allow enabling of version 2 by using some of its features.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1b295a17d7 
								
							
								 
							
						 
						
							
							
								
								ffv1: fix version=2 chroma handling  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5612359501 
								
							
								 
							
						 
						
							
							
								
								ffv1: add a minor version field beginning with ffv1.3  
							
							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  
				
					
						
							
							
								 
						
							
							
							
								
							
								3dde147ff9 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Consistently place static, inline and av_cold attributes/keywords.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ae2c33b0c2 
								
							
								 
							
						 
						
							
							
								
								cosmetics: remove superfluous curly brackets  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ed45636e16 
								
							
								 
							
						 
						
							
							
								
								ffv1enc: switch to ff_alloc_packet2()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e01f478dd2 
								
							
								 
							
						 
						
							
							
								
								ffv1enc: Check context_model  
							
							Fixes crash
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago