[FFmpeg-devel] [PATCH 11/13] ffmpeg: use av_buffersrc_add_frame instead of av_buffersrc_add_ref
Andreas Cadhalpun
andreas.cadhalpun at googlemail.com
Sat Aug 8 13:33:06 CEST 2015
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
---
ffmpeg.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 5c44ad2..3858a4d 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -294,7 +294,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 */
@@ -2248,11 +2248,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;
}
--
2.4.6
More information about the ffmpeg-devel
mailing list