comparison mlpdec.c @ 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
comparison
equal deleted inserted replaced
9348:586dca8c04e7 9349:1a3bb292b65d
948 end = get_bits(&gb, 12) * 2; 948 end = get_bits(&gb, 12) * 2;
949 949
950 substr_header_size += 2; 950 substr_header_size += 2;
951 951
952 if (extraword_present) { 952 if (extraword_present) {
953 if (m->avctx->codec_id == CODEC_ID_MLP) {
954 av_log(m->avctx, AV_LOG_ERROR, "There must be no extraword for MLP.\n");
955 goto error;
956 }
953 skip_bits(&gb, 16); 957 skip_bits(&gb, 16);
954 substr_header_size += 2; 958 substr_header_size += 2;
955 } 959 }
956 960
957 if (!(nonrestart_substr ^ m->is_major_sync_unit)) { 961 if (!(nonrestart_substr ^ m->is_major_sync_unit)) {