[FFmpeg-cvslog] ffplay: remove some unneded av_frame_unref calls

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


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Wed Dec 25 15:55:30 2013 +0100| [e3ff6938b5d6cc1d932d5bf182af13840961cf56] | committer: Marton Balint

ffplay: remove some unneded av_frame_unref calls

av_buffersrc_add_frame implicitly unreferences the added frame.

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

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

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

diff --git a/ffplay.c b/ffplay.c
index 469f508..0cdcbb4 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1963,7 +1963,6 @@ static int video_thread(void *arg)
         ret = av_buffersrc_add_frame(filt_in, frame);
         if (ret < 0)
             goto the_end;
-        av_frame_unref(frame);
         av_free_packet(&pkt);
 
         while (ret >= 0) {
@@ -2241,7 +2240,6 @@ static int audio_decode_frame(VideoState *is)
 
                 if ((ret = av_buffersrc_add_frame(is->in_audio_filter, is->frame)) < 0)
                     return ret;
-                av_frame_unref(is->frame);
 #endif
             }
 #if CONFIG_AVFILTER



More information about the ffmpeg-cvslog mailing list