aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-05-05 09:22:24 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-05-06 16:14:34 +0200
commit6ec1e0fed9749d7f49a97ac9c0566e0d29a01bb0 (patch)
treed8f6d6390552ceb44bf93a046ca255212190dbca
parent84aea80f7824c23b4cbf101f03e2b5b418a79d80 (diff)
downloadffmpeg-6ec1e0fed9749d7f49a97ac9c0566e0d29a01bb0.tar.gz
ffmpeg: replace av_buffersrc_buffer with av_buffersrc_add_ref.
-rw-r--r--ffmpeg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 896dcc0319..0b011ffb4f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2594,7 +2594,7 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
/* no picture yet */
if (!pkt->size)
for (i = 0; i < ist->nb_filters; i++)
- av_buffersrc_buffer(ist->filters[i]->filter, NULL);
+ av_buffersrc_add_ref(ist->filters[i]->filter, NULL, 0);
return ret;
}
@@ -2658,7 +2658,9 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
av_assert0(buf->refcount>0);
buf->refcount++;
- av_buffersrc_buffer(ist->filters[i]->filter, fb);
+ av_buffersrc_add_ref(ist->filters[i]->filter, fb,
+ AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT |
+ AV_BUFFERSRC_FLAG_NO_COPY);
} else
if(av_vsrc_buffer_add_frame(ist->filters[i]->filter, decoded_frame,AV_VSRC_BUF_FLAG_OVERWRITE)<0) {
av_log(NULL, AV_LOG_FATAL, "Failed to inject frame into filter network\n");