diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-05-22 03:04:35 +0200 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2019-05-29 00:16:26 +0100 |
commit | 1759a9e5b52de524fa9f3f4d115087132744176b (patch) | |
tree | 25fc84fe1745a0ec1a89184b6848f62dc493c7fe /libavcodec/cbs_mpeg2_syntax_template.c | |
parent | de5880383967f44927c599ab16fa0f4f96b38365 (diff) |
cbs_mpeg2: Correct error codes
Up until now, things that are merely unsupported by cbs_mpeg2 have been
declared to be invalid input. This has been changed.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/cbs_mpeg2_syntax_template.c')
-rw-r--r-- | libavcodec/cbs_mpeg2_syntax_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cbs_mpeg2_syntax_template.c b/libavcodec/cbs_mpeg2_syntax_template.c index 09487fe56d..d753cdc901 100644 --- a/libavcodec/cbs_mpeg2_syntax_template.c +++ b/libavcodec/cbs_mpeg2_syntax_template.c @@ -335,9 +335,9 @@ static int FUNC(extension_data)(CodedBitstreamContext *ctx, RWContext *rw, return FUNC(picture_coding_extension) (ctx, rw, ¤t->data.picture_coding); default: - av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid extension ID %d.\n", + av_log(ctx->log_ctx, AV_LOG_ERROR, "Extension ID %d not supported.\n", current->extension_start_code_identifier); - return AVERROR_INVALIDDATA; + return AVERROR_PATCHWELCOME; } } |