[FFmpeg-devel] [PATCH 2/2] ffplay: reset AVFrame to defaults before decoding each new frame.
Michael Niedermayer
michaelni at gmx.at
Fri Jun 8 14:41:24 CEST 2012
This fixes: ffplay -f lavfi -i cellauto
This was a regression since factorizing the filter code with ffmpeg.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
ffplay.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ffplay.c b/ffplay.c
index 01a010e..c8d768f 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;
--
1.7.9.5
More information about the ffmpeg-devel
mailing list