Commit 5249706e authored by Andreas Cadhalpun's avatar Andreas Cadhalpun

mpegaudio_parser: don't return AVERROR_PATCHWELCOME

The API does not allow returning AVERROR codes.

It triggers an assert in av_parser_parse2.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
parent 73ce1d86
...@@ -98,7 +98,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1, ...@@ -98,7 +98,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
} else if (codec_id == AV_CODEC_ID_MP3ADU) { } else if (codec_id == AV_CODEC_ID_MP3ADU) {
avpriv_report_missing_feature(avctx, avpriv_report_missing_feature(avctx,
"MP3ADU full parser"); "MP3ADU full parser");
return AVERROR_PATCHWELCOME; return 0; /* parsers must not return error codes */
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment