[FFmpeg-devel] [PATCH 06/11] doc/examples/transcode: use av_buffersrc_add_frame()
Stefano Sabatini
stefasab at gmail.com
Sat Sep 2 18:19:16 EEST 2023
Favor it over av_buffersrc_add_frame_flags, simplify.
---
doc/examples/transcode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/examples/transcode.c b/doc/examples/transcode.c
index dd64c38f15..21ea14b614 100644
--- a/doc/examples/transcode.c
+++ b/doc/examples/transcode.c
@@ -483,7 +483,7 @@ static int filter_encode_write_frame(AVFrame *frame, unsigned int stream_index)
av_log(NULL, AV_LOG_INFO, "Pushing decoded frame to filters\n");
/* push the decoded frame into the filtergraph */
- ret = av_buffersrc_add_frame_flags(filter->buffersrc_ctx, frame, 0);
+ ret = av_buffersrc_add_frame(filter->buffersrc_ctx, frame);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Error while feeding the filtergraph\n");
return ret;
--
2.34.1
More information about the ffmpeg-devel
mailing list