} else if (codec_id == AV_CODEC_ID_MP3ADU) {
avpriv_report_missing_feature(avctx,
"MP3ADU full parser");
- return 0; /* parsers must not return error codes */
+ *poutbuf = NULL;
+ *poutbuf_size = 0;
+ return buf_size; /* parsers must not return error codes */
}
break;
}
-AVCodecParser ff_mpegaudio_parser = {
+const AVCodecParser ff_mpegaudio_parser = {
.codec_ids = { AV_CODEC_ID_MP1, AV_CODEC_ID_MP2, AV_CODEC_ID_MP3, AV_CODEC_ID_MP3ADU },
.priv_data_size = sizeof(MpegAudioParseContext),
.parser_parse = mpegaudio_parse,