Message ID | 20230902151921.1712373-6-stefasab@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,01/11] lavc/avcodec.h: fix typos in AVCodecContext.pkt_timebase description | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/doc/examples/transcode.c b/doc/examples/transcode.c index 3c57fb36c9..dd64c38f15 100644 --- a/doc/examples/transcode.c +++ b/doc/examples/transcode.c @@ -161,8 +161,8 @@ static int open_output_file(const char *filename) /* in this example, we choose transcoding to same codec */ encoder = avcodec_find_encoder(dec_ctx->codec_id); if (!encoder) { - av_log(NULL, AV_LOG_FATAL, "Necessary encoder not found\n"); - return AVERROR_INVALIDDATA; + av_log(NULL, AV_LOG_FATAL, "Necessary encoder with ID %d not found\n", dec_ctx->codec_id); + return AVERROR(EINVAL); } enc_ctx = avcodec_alloc_context3(encoder); if (!enc_ctx) {