]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpegaudio_parser.c
avcodec: Constify all the AVCodecParsers
[ffmpeg] / libavcodec / mpegaudio_parser.c
index a109f12701b144a2b7395a50c476f0000f3e97ff..2549503d3512f70fe70072800cd0ea872eead705 100644 (file)
@@ -101,7 +101,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
                             "MP3ADU full parser");
                         *poutbuf = NULL;
                         *poutbuf_size = 0;
-                        return 0; /* parsers must not return error codes */
+                        return buf_size; /* parsers must not return error codes */
                     }
 
                     break;
@@ -135,7 +135,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
 }
 
 
-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,