changeset 9349:1a3bb292b65d libavcodec

mlpdec: There must be no extraword for MLP.
author ramiro
date Sun, 05 Apr 2009 20:54:19 +0000
parents 586dca8c04e7
children 1432fb0ee5d7
files mlpdec.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mlpdec.c	Sun Apr 05 20:46:53 2009 +0000
+++ b/mlpdec.c	Sun Apr 05 20:54:19 2009 +0000
@@ -950,6 +950,10 @@
         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;
         }