intel h263 dec: support advanced prediction

Fixes Ticket1292

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/59/head
Michael Niedermayer 13 years ago
parent 1125606a1f
commit c390822e18
  1. 4
      libavcodec/intelh263dec.c

@ -54,14 +54,14 @@ int ff_intel_h263_decode_picture_header(MpegEncContext *s)
s->pict_type = AV_PICTURE_TYPE_I + get_bits1(&s->gb); s->pict_type = AV_PICTURE_TYPE_I + get_bits1(&s->gb);
s->unrestricted_mv = get_bits1(&s->gb); s->h263_long_vectors = get_bits1(&s->gb);
s->h263_long_vectors = s->unrestricted_mv;
if (get_bits1(&s->gb) != 0) { if (get_bits1(&s->gb) != 0) {
av_log(s->avctx, AV_LOG_ERROR, "SAC not supported\n"); av_log(s->avctx, AV_LOG_ERROR, "SAC not supported\n");
return -1; /* SAC: off */ return -1; /* SAC: off */
} }
s->obmc= get_bits1(&s->gb); s->obmc= get_bits1(&s->gb);
s->unrestricted_mv = s->obmc || s->h263_long_vectors;
s->pb_frame = get_bits1(&s->gb); s->pb_frame = get_bits1(&s->gb);
if (format < 6) { if (format < 6) {

Loading…
Cancel
Save