aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-08 14:41:24 +0200
committerMarton Balint <cus@passwd.hu>2012-06-08 21:32:10 +0200
commitcb819338d1724bc92027f01a30565dd409f0d672 (patch)
treea80fdca98d7b774bf8ac7bba57889a1423ce4965 /ffplay.c
parent349b65eee2fd5590b7e511c915dcd2d3aef3960e (diff)
downloadffmpeg-cb819338d1724bc92027f01a30565dd409f0d672.tar.gz
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>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 01a010e0c1..c8d768fb27 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1668,6 +1668,7 @@ static int video_thread(void *arg)
while (is->paused && !is->videoq.abort_request)
SDL_Delay(10);
+ avcodec_get_frame_defaults(frame);
ret = get_video_frame(is, frame, &pts_int, &pkt);
if (ret < 0)
goto the_end;