[FFmpeg-cvslog] ffplay: remove two unneeded av_free_packet 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 16:16:23 2013 +0100| [e90aef9195d2081cd1ee4bc1759b5610427c50c8] | committer: Marton Balint

ffplay: remove two unneeded av_free_packet calls

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

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

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

diff --git a/ffplay.c b/ffplay.c
index 0cdcbb4..fa3e114 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1948,7 +1948,6 @@ static int video_thread(void *arg)
                 event.type = FF_QUIT_EVENT;
                 event.user.data1 = is;
                 SDL_PushEvent(&event);
-                av_free_packet(&pkt);
                 goto the_end;
             }
             filt_in  = is->in_video_filter;
@@ -1963,7 +1962,6 @@ static int video_thread(void *arg)
         ret = av_buffersrc_add_frame(filt_in, frame);
         if (ret < 0)
             goto the_end;
-        av_free_packet(&pkt);
 
         while (ret >= 0) {
             is->frame_last_returned_time = av_gettime() / 1000000.0;



More information about the ffmpeg-cvslog mailing list