From b8a79867754e5ac7fcd66b0172db675297554451 Mon Sep 17 00:00:00 2001 From: Carl-Anton Ingmarsson Date: Thu, 30 Apr 2009 21:58:01 +0200 Subject: vdpaumpegdec: set full_pel_forward_vector to 0 when pic_type == P_FRAME --- sys/vdpau/mpegutil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/vdpau/mpegutil.c b/sys/vdpau/mpegutil.c index 6f59b841..08ae5c53 100644 --- a/sys/vdpau/mpegutil.c +++ b/sys/vdpau/mpegutil.c @@ -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; -- cgit v1.2.1