vdpaumpegdec: set full_pel_forward_vector to 0 when pic_type == P_FRAME

This commit is contained in:
Carl-Anton Ingmarsson 2009-04-30 21:58:01 +02:00 committed by Jan Schmidt
parent 3a7a2af1fa
commit b8a7986775

View file

@ -301,7 +301,8 @@ mpeg_util_parse_picture_hdr (MPEGPictureHdr * hdr, guint8 * data, guint8 * end)
if (hdr->pic_type == B_FRAME) {
hdr->full_pel_backward_vector = read_bits (data + 4, 1, 1);
hdr->f_code[1][0] = hdr->f_code[1][1] = read_bits (data + 4, 2, 3);
}
} else
hdr->full_pel_backward_vector = 0;
} else {
hdr->full_pel_forward_vector = 0;
hdr->full_pel_backward_vector = 0;