Commit ce58f7cb authored by ramiro's avatar ramiro

mlpdec: Restart header sync must be 0x31ea for MLP.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18648 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a9862fb2
...@@ -337,13 +337,14 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp, ...@@ -337,13 +337,14 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp,
int start_count = get_bits_count(gbp); int start_count = get_bits_count(gbp);
sync_word = get_bits(gbp, 13); sync_word = get_bits(gbp, 13);
s->noise_type = get_bits1(gbp);
if (sync_word != 0x31ea >> 1) { if ((m->avctx->codec_id == CODEC_ID_MLP && s->noise_type) ||
sync_word != 0x31ea >> 1) {
av_log(m->avctx, AV_LOG_ERROR, av_log(m->avctx, AV_LOG_ERROR,
"restart header sync incorrect (got 0x%04x)\n", sync_word); "restart header sync incorrect (got 0x%04x)\n", sync_word);
return -1; return -1;
} }
s->noise_type = get_bits1(gbp);
skip_bits(gbp, 16); /* Output timestamp */ skip_bits(gbp, 16); /* Output timestamp */
......
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