[FFmpeg-cvslog] ffmpeg: remove useless flags to EOF av_buffersrc_add_ref.

Nicolas George git at videolan.org
Mon Aug 20 23:53:52 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sun Aug 19 19:02:31 2012 +0200| [dcae2ecc13eee63014d904d125dcc6e3d76934bd] | committer: Nicolas George

ffmpeg: remove useless flags to EOF av_buffersrc_add_ref.

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

 ffmpeg.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index bf78a60..b50b160 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1419,8 +1419,7 @@ static int decode_audio(InputStream *ist, AVPacket *pkt, int *got_output)
     if (!*got_output || ret < 0) {
         if (!pkt->size) {
             for (i = 0; i < ist->nb_filters; i++)
-                av_buffersrc_add_ref(ist->filters[i]->filter, NULL,
-                                     AV_BUFFERSRC_FLAG_NO_COPY);
+                av_buffersrc_add_ref(ist->filters[i]->filter, NULL, 0);
         }
         return ret;
     }
@@ -1539,7 +1538,7 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
     if (!*got_output || ret < 0) {
         if (!pkt->size) {
             for (i = 0; i < ist->nb_filters; i++)
-                av_buffersrc_add_ref(ist->filters[i]->filter, NULL, AV_BUFFERSRC_FLAG_NO_COPY);
+                av_buffersrc_add_ref(ist->filters[i]->filter, NULL, 0);
         }
         return ret;
     }



More information about the ffmpeg-cvslog mailing list