Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-08-08 11:41:32 +0300
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-08-16 19:17:00 +0300
commitfbc8eb68578469f8b4d91bf5290d5439ff7398cb (patch)
treec5d967898e6d4237144215d6591ccae88ada309a /ffmpeg.c
parent0cb87cd7d4cf253ae7299b9fae4176b9bd8ef058 (diff)
ffmpeg: use av_buffersrc_add_frame instead of av_buffersrc_add_ref
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index d20f56bb80..07ce4af3ae 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;
}