[FFmpeg-soc] [soc]: r3853 - dirac/libavcodec/diracdec.c
conrad
subversion at mplayerhq.hu
Wed Dec 3 22:28:58 CET 2008
Author: conrad
Date: Wed Dec 3 22:28:58 2008
New Revision: 3853
Log:
Fail if picture prediction mode is not 0 as this will likely cause bitstream desync
Modified:
dirac/libavcodec/diracdec.c
Modified: dirac/libavcodec/diracdec.c
==============================================================================
--- dirac/libavcodec/diracdec.c (original)
+++ dirac/libavcodec/diracdec.c Wed Dec 3 22:28:58 2008
@@ -327,9 +327,11 @@ static int dirac_unpack_prediction_param
}
}
- /* Picture prediction mode. Not used yet in the specification, so
- just ignore it, it should and will be zero. */
- svq3_get_ue_golomb(gb);
+ /* Picture prediction mode. May be used in the future. */
+ if (svq3_get_ue_golomb(gb) != 0) {
+ av_log(s->avctx, AV_LOG_ERROR, "Unknown picture prediction mode\n");
+ return -1;
+ }
/* Default weights */
s->decoding.picture_weight_precision = 1;
More information about the FFmpeg-soc
mailing list