aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mlpdec.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2009-04-05 20:54:19 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-04-05 20:54:19 +0000
commit89e39be3b647c5c04bf96a927fa2b355af4c53e7 (patch)
tree481deaba914c43da2b3ac4ebf8df4fdd973a07bd /libavcodec/mlpdec.c
parentcc9c5126387a1d8093ca8cc1df6ab2c535c35dba (diff)
downloadffmpeg-89e39be3b647c5c04bf96a927fa2b355af4c53e7.tar.gz
mlpdec: There must be no extraword for MLP.
Originally committed as revision 18337 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r--libavcodec/mlpdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c
index 516c17f073..9b36b2e5bb 100644
--- a/libavcodec/mlpdec.c
+++ b/libavcodec/mlpdec.c
@@ -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;
}