Browse Source

mlpdec: There must be no extraword for MLP.

Originally committed as revision 18337 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Ramiro Polla 17 years ago
parent
commit
89e39be3b6
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/mlpdec.c

+ 4
- 0
libavcodec/mlpdec.c View File

@@ -950,6 +950,10 @@ static int read_access_unit(AVCodecContext *avctx, void* data, int *data_size,
substr_header_size += 2;

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);
substr_header_size += 2;
}


Loading…
Cancel
Save