[FFmpeg-cvslog] ffmpeg: use av_buffersrc_add_frame instead of av_buffersrc_add_ref

Andreas Cadhalpun git at videolan.org
Sun Aug 16 18:17:43 CEST 2015


ffmpeg | branch: master | Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com> | Sat Aug  8 10:41:32 2015 +0200| [fbc8eb68578469f8b4d91bf5290d5439ff7398cb] | committer: Andreas Cadhalpun

ffmpeg: use av_buffersrc_add_frame instead of av_buffersrc_add_ref

Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>

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

 ffmpeg.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index d20f56b..07ce4af 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -295,7 +295,7 @@ static void sub2video_flush(InputStream *ist)
     if (ist->sub2video.end_pts < INT64_MAX)
         sub2video_update(ist, NULL);
     for (i = 0; i < ist->nb_filters; i++)
-        av_buffersrc_add_ref(ist->filters[i]->filter, NULL, 0);
+        av_buffersrc_add_frame(ist->filters[i]->filter, NULL);
 }
 
 /* end of sub2video hack */
@@ -2246,11 +2246,7 @@ static int send_filter_eof(InputStream *ist)
 {
     int i, ret;
     for (i = 0; i < ist->nb_filters; i++) {
-#if 1
-        ret = av_buffersrc_add_ref(ist->filters[i]->filter, NULL, 0);
-#else
         ret = av_buffersrc_add_frame(ist->filters[i]->filter, NULL);
-#endif
         if (ret < 0)
             return ret;
     }



More information about the ffmpeg-cvslog mailing list