[FFmpeg-devel] [PATCH 08/11] doc/examples/transcode: use more meaningful labels for filtergraph sinks and sources
Stefano Sabatini
stefasab at gmail.com
Sat Sep 2 18:19:18 EEST 2023
---
doc/examples/transcode.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/examples/transcode.c b/doc/examples/transcode.c
index 5671c6664b..b94fdbede2 100644
--- a/doc/examples/transcode.c
+++ b/doc/examples/transcode.c
@@ -280,14 +280,14 @@ static int init_filter(FilteringContext *fctx, AVCodecContext *dec_ctx,
dec_ctx->sample_aspect_ratio.num,
dec_ctx->sample_aspect_ratio.den);
- ret = avfilter_graph_create_filter(&buffersrc_ctx, buffersrc, "in",
+ ret = avfilter_graph_create_filter(&buffersrc_ctx, buffersrc, "video-in",
args, NULL, filter_graph);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Cannot create buffer source\n");
goto end;
}
- ret = avfilter_graph_create_filter(&buffersink_ctx, buffersink, "out",
+ ret = avfilter_graph_create_filter(&buffersink_ctx, buffersink, "video-out",
NULL, NULL, filter_graph);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Cannot create buffer sink\n");
@@ -321,14 +321,14 @@ static int init_filter(FilteringContext *fctx, AVCodecContext *dec_ctx,
av_get_sample_fmt_name(dec_ctx->sample_fmt),
buf);
- ret = avfilter_graph_create_filter(&buffersrc_ctx, buffersrc, "in",
+ ret = avfilter_graph_create_filter(&buffersrc_ctx, buffersrc, "audio-in",
args, NULL, filter_graph);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Cannot create audio buffer source\n");
goto end;
}
- ret = avfilter_graph_create_filter(&buffersink_ctx, buffersink, "out",
+ ret = avfilter_graph_create_filter(&buffersink_ctx, buffersink, "audio-out",
NULL, NULL, filter_graph);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Cannot create audio buffer sink\n");
--
2.34.1
More information about the ffmpeg-devel
mailing list