ffmpeg: remove useless flags to EOF av_buffersrc_add_ref.
authorNicolas George <nicolas.george@normalesup.org>
Sun, 19 Aug 2012 17:02:31 +0000 (19:02 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Mon, 20 Aug 2012 21:45:15 +0000 (23:45 +0200)
ffmpeg.c

index bf78a60..b50b160 100644 (file)
--- 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;
     }