a366beaf6a 
								
							
								 
							
						 
						
							
							
								
								ffplay: fix odd YUV width by cropping the video  
							
							Should fix issue #1322 .
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5296d7b971 
								
							
								 
							
						 
						
							
							
								
								ffmpeg,ffplay: show filter options  
							
							Address trac ticket #1599 . 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c151e0ca15 
								
							
								 
							
						 
						
							
							
								
								ffplay: reque attached pictures on channel changes.  
							
							Fixes Ticket1473
Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ab0ea7cb41 
								
							
								 
							
						 
						
							
							
								
								ffplay: avoid SDL_atoi()  
							
							It appears this function is not available everywhere
Should fix Ticket1525
Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e2c96fbf3e 
								
							
								 
							
						 
						
							
							
								
								ffplay: fix warning that i just mistakenly introduced  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cdafec69ce 
								
							
								 
							
						 
						
							
							
								
								ffplay: fix planar audio  
							
							This caused ALAC to fail since the last merge
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								58f22f7012 
								
							
								 
							
						 
						
							
							
								
								ffplay: only configure video filters after we got the first frame  
							
							Otherwise the codec width, height and pixel format values may not be set.
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b12e61ac7f 
								
							
								 
							
						 
						
							
							
								
								ffplay: factorize expression in audio_decode_frame()  
							
							Possibly improve readability. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								94a00ec8af 
								
							
								 
							
						 
						
							
							
								
								ffplay: group together and vertically align correlated parameters in log function  
							
							Possibly improve readability. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8179660222 
								
							
								 
							
						 
						
							
							
								
								ffplay: vertially align complex if condition in audio_decode_frame()  
							
							Possibly improve readability. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								347ecfdc63 
								
							
								 
							
						 
						
							
							
								
								ffplay: move assignment in else block in audio_decode_frame()  
							
							Avoid confusing and pointless double assignment of variable
resampled_data_size. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0d3ffde64f 
								
							
								 
							
						 
						
							
							
								
								ffplay: split overly long line in audio_decode_frame()  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4fd07b9366 
								
							
								 
							
						 
						
							
							
								
								ffplay: avoid useless NULL checks in swr_free()  
							
							swr_free() already checks for nullness, no need to add the check in
calling code. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4674718203 
								
							
								 
							
						 
						
							
							
								
								ffplay: fix wrong reference to function in audio_decode_frame() comment  
							
							The comment now references swr_convert(), rather than audio_convert(),
which was deprecated and/or dropped. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7877b50d18 
								
							
								 
							
						 
						
							
							
								
								ffplay: simplify code by using avfilter_unref_bufferp()  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b0fdd3489a 
								
							
								 
							
						 
						
							
							
								
								lavfi: deprecate av_buffersrc_buffer() function  
							
							Favor av_buffersrc_add_ref() instead, which is more powerful. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								79a7451d06 
								
							
								 
							
						 
						
							
							
								
								ffplay: add configure_filtergraph() helper  
							
							Will help factorization with the pending -af patch, and add some checks
missing in the original code. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8dd0e87d7b 
								
							
								 
							
						 
						
							
							
								
								lavfi: remove old video sink API  
							
							It was deprecated since a long time and removed after the 2->3 major
bump. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fec512a52c 
								
							
								 
							
						 
						
							
							
								
								ffplay: give more meaningful names to the buffersink instances  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								43583fb85c 
								
							
								 
							
						 
						
							
							
								
								lavfi/avcodec: deprecate avfilter_fill_frame_from_*_buffer_ref API  
							
							Deprecate functions:
avfilter_fill_frame_from_buffer_ref
avfilter_fill_frame_from_audio_buffer_ref
avfilter_fill_frame_from_video_buffer_ref
and schedule to drop them at the next API major bump.
The function avfilter_copy_buf_props() should be used instead. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								39e019e8c1 
								
							
								 
							
						 
						
							
							
								
								ffplay: add cast to fix warning in configure_video_filters()  
							
							Fix warning:
ffplay.c:1578:40: warning: passing argument 5 of ‘avfilter_graph_create_filter’ discards ‘const’ qualifier from pointer target type [enabled by default]
libavfilter/avfiltergraph.h:84:5: note: expected ‘void *’ but argument is of type ‘const enum PixelFormat *’ 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								db83570875 
								
							
								 
							
						 
						
							
							
								
								ffplay: fix -vismv 1  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8f45c3141c 
								
							
								 
							
						 
						
							
							
								
								ffplay: rename buffer source instance from "src" to "ffplay_buffer"  
							
							The new name is more descriptive.
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								251f398798 
								
							
								 
							
						 
						
							
							
								
								ffplay: use key=val syntax for the buffersrc args  
							
							Fix warning:
[src @ ...] Flat options syntax is deprecated, use key=value pairs.
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								143a5390bf 
								
							
								 
							
						 
						
							
							
								
								ffplay: fix return value of get_video_frame if avcodec_decode_video fails  
							
							Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cb819338d1 
								
							
								 
							
						 
						
							
							
								
								ffplay: reset AVFrame to defaults before decoding each new frame.  
							
							This fixes: ffplay -f lavfi -i cellauto
This was a regression since factorizing the filter code with ffmpeg.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								349b65eee2 
								
							
								 
							
						 
						
							
							
								
								ffplay: check return code of avcodec_decode_video2()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5fdcfdf237 
								
							
								 
							
						 
						
							
							
								
								ffplay: fix build if avfilter is disabled  
							
							Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a78bc6f78c 
								
							
								 
							
						 
						
							
							
								
								ffplay: fix frame_delay calculation in new avfilter code  
							
							Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e85df18d74 
								
							
								 
							
						 
						
							
							
								
								ffplay: add support for changing pixel format  
							
							With the filtering code refactored, it was much easier to finally fix this.
Fixes ticket 123 and 238.
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cd947e9a2b 
								
							
								 
							
						 
						
							
							
								
								ffplay: add missing filt_in assignment after video filter reconfigure  
							
							Fixes segfaults on changing resolution.
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0a501c756f 
								
							
								 
							
						 
						
							
							
								
								ffplay: fix frame aspect ratio after qatar merge  
							
							Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c9651d4bee 
								
							
								 
							
						 
						
							
							
								
								ffplay: fix use after free  
							
							reproduceable with:
ffmpeg -i tests/lena.pnm -pix_fmt pal8 -vcodec rawvideo -s 512x512 out.avi
valgrind ffplay_g out.avi
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1372c826de 
								
							
								 
							
						 
						
							
							
								
								ffplay: use dummy video driver if display is disabled  
							
							Fixes ticket 1402.
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								22505c188c 
								
							
								 
							
						 
						
							
							
								
								ffplay: calculate audio diff threshold based on the actual settings  
							
							Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0dad529201 
								
							
								 
							
						 
						
							
							
								
								ffplay: try more channel count combinations for SDL_OpenAudio  
							
							This should fix ticket 1384.
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7821264c26 
								
							
								 
							
						 
						
							
							
								
								ffplay: simplify audio_open, rename parameters to more explanatory names  
							
							Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7342037973 
								
							
								 
							
						 
						
							
							
								
								ffplay: remove VideoState from audio_open  
							
							Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e1248f5c52 
								
							
								 
							
						 
						
							
							
								
								ffplay: put audio parameters to their own struct  
							
							Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								03095d73a3 
								
							
								 
							
						 
						
							
							
								
								ffplay: put audio_open into a seperate function  
							
							Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f1a75aa033 
								
							
								 
							
						 
						
							
							
								
								ffplay: remove VideoPicture pix_fmt and use frame pixel format instead  
							
							VideoPicture pixel format is set at allocation time, therefore it is not
reflecting the proper value.
Fixes files with changing pixel format in the avfilter disabled case.
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								15751e3fdd 
								
							
								 
							
						 
						
							
							
								
								ffplay: only request 4 or 6 channels from SDL, if SDL version is at least 1.2.8  
							
							Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a6f51de3bf 
								
							
								 
							
						 
						
							
							
								
								ffplay: add pause audio feature in the middle of a packet  
							
							Fixes ticket 215.
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d872e11300 
								
							
								 
							
						 
						
							
							
								
								ffplay: remove VideoPicture duration field  
							
							We are not using it.
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7315e40a24 
								
							
								 
							
						 
						
							
							
								
								ffplay: force exit when filter configuration fails  
							
							Switching to visualization instead of exiting ffplay is a bit more tricky, so
just exit for now.
Fixes ticket 38.
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c9971c35e 
								
							
								 
							
						 
						
							
							
								
								ffplay: fix stream cycling if audio decoding fails  
							
							Fixes ticket 1161.
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c2e8691c07 
								
							
								 
							
						 
						
							
							
								
								ffplay: flush codec buffers before freeing filters  
							
							We do this to ensure that input_get_buffer is not called from a
frame_worker_thread of a multithreaded decoder when we already freed the
filters.
Fixes occasional segfaults on video stream change.
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a687acbbf0 
								
							
								 
							
						 
						
							
							
								
								ffplay: dont destroy packet queues on stream change  
							
							This fixes occasional segfaults caused by lock request of the packet queue from
the reader thread.
Also don't allow to put frames into the queue when it's aborted, and don't try
to fill the queue with frames when it is aborted.
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								afe4d3bd54 
								
							
								 
							
						 
						
							
							
								
								ffplay: set base in dr1 allocation.  
							
							This matches the default non dr1 allocator
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4b5ff9b63e 
								
							
								 
							
						 
						
							
							
								
								ffplay: Use input picture parameters in input_request_frame().  
							
							Fixes Ticket122
Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago