Commit d025aa65 authored by ramiro's avatar ramiro

mlpdec: There must be no extraword for MLP.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18337 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent aff30608
...@@ -950,6 +950,10 @@ static int read_access_unit(AVCodecContext *avctx, void* data, int *data_size, ...@@ -950,6 +950,10 @@ static int read_access_unit(AVCodecContext *avctx, void* data, int *data_size,
substr_header_size += 2; substr_header_size += 2;
if (extraword_present) { if (extraword_present) {
if (m->avctx->codec_id == CODEC_ID_MLP) {
av_log(m->avctx, AV_LOG_ERROR, "There must be no extraword for MLP.\n");
goto error;
}
skip_bits(&gb, 16); skip_bits(&gb, 16);
substr_header_size += 2; substr_header_size += 2;
} }
......
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