c363843a53 
								
							
								 
							
						 
						
							
							
								
								add missing FF_API_DESTRUCT_PACKET guards  
							
							Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b3d2035ec3 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: use av_err2str()  
							
							Found-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								45f3d4e63e 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Use correct codec_id for av_parser_change() check  
							
							No testcase known
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ac0ba6f233 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Check av_parser_change() for failure  
							
							No testcase known
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c8890941d6 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Check for RAWVIDEO and do not relay only on AVFMT_RAWPICTURE  
							
							The null muxer has AVFMT_RAWPICTURE set but can be fed with non-raw material
related to Ticket4778
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								15ff3f3fdf 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: check avpicture_fill() return value  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								229843aa35 
								
							
								 
							
						 
						
							
							
								
								Replace av_dlog with ff_dlog.  
							
							ff_dlog checks compilability, and is non-public. av_dlog is deprecated
and no longer exists if FF_API_DLOG=0. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fbc8eb6857 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: use av_buffersrc_add_frame instead of av_buffersrc_add_ref  
							
							Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4ada49f9db 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Use the decoders dimensions in sub2video_get_blank_frame()  
							
							Fixes Ticket4744 part3
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bd5d11d9f5 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Use actual frame dimensions in checks in sub2video_update()  
							
							Fixes Ticket4744 part2
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0ac83047f6 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Print sub2video: rectangle coordinates in case of overflows  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9c29aa7143 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: replace deprecated av_log_ask_for_sample with av_log  
							
							Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6dbaeed6b7 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: switch swscale option handling to AVDictionary similar to what the other subsystems use  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								99f8fc725d 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: remove access to private FILE struct members on Windows  
							
							The FILE struct is opaque in MSVC 2015, and the members of this struct
were never meant to be accessed in any case.
No conditions are known where this check was needed to get characters
from stdin. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2ab5002e3c 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: avoid scanf in keyboard command parsing  
							
							Mixing stdio and low-level IO on stdin is not safe. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d2077c860e 
								
							
								 
							
						 
						
							
							
								
								Revert "ffmpeg: modify tty state when stderr is redirected"  
							
							faults in fate otherwise breaks the terminal.
To reproduce, add a abort() into wav_read_header()
run make fate-acodec-adpcm-ima_wav
This reverts commit 92e62f49cf 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								92e62f49cf 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: modify tty state when stderr is redirected  
							
							This fixes Ticket2964
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c2f00d590 
								
							
								 
							
						 
						
							
							
								
								ffmpeg.c: remove all remaining coded_frame uses  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cdb0225fa9 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Use side data instead of coded_frame for error[] values  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c40ecffd31 
								
							
								 
							
						 
						
							
							
								
								Replace AV_PKT_DATA_QUALITY_FACTOR by AV_PKT_DATA_QUALITY_STATS  
							
							The stats are a superset of the quality factor, also allowing the picture type and encoder "PSNR" stats to be exported
This also replaces the native by fixed little endian order for the affected side data
AV_PKT_DATA_QUALITY_FACTOR is left as a synonym of AV_PKT_DATA_QUALITY_STATS
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6e80fe1ecd 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Fix cleanup after failed allocation of output_files  
							
							Fixes: 39a25908b84604acdaa490138282d091_signal_sigsegv_7ffff713351a_331_WAWV.avi with memlimit of 262144
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fd4c87fa3b 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Fix crash with ost->last_frame allocation failure  
							
							Fixes: 1013dbde2c360d939cc2dfc33e4f275c_signal_sigsegv_a0500f_45_320vp3.nsv with memlimit of 536870912
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bd27dc9102 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Fix deallocating input threads with partly failed file allocation  
							
							Fixes: 18615ff56beedc63a884a8db0678b47c_signal_sigsegv_7ffff713351a_991_xtrem_e2_m64q15_a32sxx.3gp with memlimit of 524288
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								503ec7139f 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Fix cleanup with ost = NULL  
							
							Fixes: 09e670595acbdafb226974b08dab66e3_signal_sigabrt_7ffff70eccc9_991_xtrem_e2_m64q15_a32sxx.3gp with memlimit of 1048576
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2c7f7a690f 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Use av_log to print benchmark output.  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4ebb43f19c 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: windows: respond to logoff and ctrl+break messages as well  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bd0f14123f 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: only count got_output/errors in decode_error_stat  
							
							If threading is used, the first (thread_count - 1) packets are read
before any frame/error is returned. Counting this as successful decoding
is wrong, because it also happens when no single frame could be decoded.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cd64ead8d9 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: exit_on_error if decoding a packet failed  
							
							This is the second part of the fix for ticket #4370 .
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c22143e7e 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Use 2 instead of STDERR_FILENO  
							
							STDERR_FILENO is not available on windows
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								87961eff23 
								
							
								 
							
						 
						
							
							
								
								modify exit message when signaled  
							
							Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1bcdac2da3 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: log error message when shutting down from too many signals  
							
							write() suggested by wm4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8f0f678f09 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Do not use the data/size of a bitstream filter after failure  
							
							Found-by: Rodger Combs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d1050d9950 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Free last_frame instead of just unref  
							
							Fixes Ticket4611
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4fe38441b0 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: do not print misleading recommanditions on 1pass vpx encoding  
							
							Fixes part of Ticket4295
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								18833daf9d 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Support copying unknown streams  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								57e38043de 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Do not copy the display matrix if rotation meta-data is manually added  
							
							Fixes Ticket4560
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b87dd7f82d 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: only apply last picture flush code at EOF  
							
							Fixes Ticket4562
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								77cc0d5b59 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Support preserving the source key frame timings  
							
							Added option "source" to force_key_frames 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3a91a07f15 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Remove another unneeded ost->filter_graph check  
							
							Fixes CID1241508
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								670702f91d 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Print an error if avfilter_graph_queue_command() failed  
							
							Fixes CID1271809
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								da2f156843 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: remove unneeded ost->filter check  
							
							Fixes CID1241508
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e2877bdf38 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: remove incorrect network deinit  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								93db2708d3 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Fix null pointer dereference in do_video_out()  
							
							Fixes: CID1295087
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4d02dfbde4 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Fix extradata allocation  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6eb6956d06 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Fix indentation  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								98c7729c13 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: last frame duplication heuristic  
							
							This improves the last frames duration with CFR and when the input durations
are inaccurate or missing
Fixes Ticket4119
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d768f8f5cf 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Avoid null pointer dereferences  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c285937ccc 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: comment mpeg4 hack  
							
							See 3734c3ea51 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5ee3a40f1c 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Fix -vstats when coded_frame is not set  
							
							There are several encoders which do not set coded_frame
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d92c6d82c0 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: notify when the thread message queue blocks.  
							
							This can help finding the source of A-V desync with live input. 
							
						 
						10 years ago