[FFmpeg-cvslog] ffplay: reset AVFrame to defaults before decoding each new frame.

Michael Niedermayer git at videolan.org
Sat Jun 9 00:33:02 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jun  8 14:41:24 2012 +0200| [cb819338d1724bc92027f01a30565dd409f0d672] | committer: Marton Balint

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 at gmx.at>
Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb819338d1724bc92027f01a30565dd409f0d672
---

 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;



More information about the ffmpeg-cvslog mailing list