diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2023-11-30 23:57:31 +0800 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2023-12-12 00:35:49 +0100 |
commit | 7665139656280a2f77ee8d047dd998c1b78af7eb (patch) | |
tree | 2c4e67262ed98afc515b5239ef13e61e03f79d8f /doc/examples | |
parent | 944936ee1d2d52335ff264e3d97cdba868d2486c (diff) | |
download | ffmpeg-7665139656280a2f77ee8d047dd998c1b78af7eb.tar.gz |
examples/transcode: fix log message
'encoder' can be audio or video encoder.
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/transcode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/transcode.c b/doc/examples/transcode.c index ed6ac9fa03..a544ec0340 100644 --- a/doc/examples/transcode.c +++ b/doc/examples/transcode.c @@ -196,7 +196,7 @@ static int open_output_file(const char *filename) /* Third parameter can be used to pass settings to encoder */ ret = avcodec_open2(enc_ctx, encoder, NULL); if (ret < 0) { - av_log(NULL, AV_LOG_ERROR, "Cannot open video encoder for stream #%u\n", i); + av_log(NULL, AV_LOG_ERROR, "Cannot open %s encoder for stream #%u\n", encoder->name, i); return ret; } ret = avcodec_parameters_from_context(out_stream->codecpar, enc_ctx); |