[FFmpeg-cvslog] ffplay: remove unneeded avcodec_get_frame_defaults

Marton Balint git at videolan.org
Sun Dec 29 16:50:26 CET 2013


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Wed Dec 25 15:50:48 2013 +0100| [379caaa7789834fa2b0b45c82399082d2bc85113] | committer: Marton Balint

ffplay: remove unneeded avcodec_get_frame_defaults

Signed-off-by: Marton Balint <cus at passwd.hu>

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

 ffplay.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index 52365f3..469f508 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1922,7 +1922,6 @@ static int video_thread(void *arg)
         while (is->paused && !is->videoq.abort_request)
             SDL_Delay(10);
 
-        avcodec_get_frame_defaults(frame);
         av_free_packet(&pkt);
 
         ret = get_video_frame(is, frame, &pkt, &serial);
@@ -1965,7 +1964,6 @@ static int video_thread(void *arg)
         if (ret < 0)
             goto the_end;
         av_frame_unref(frame);
-        avcodec_get_frame_defaults(frame);
         av_free_packet(&pkt);
 
         while (ret >= 0) {



More information about the ffmpeg-cvslog mailing list