summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2009-04-30 21:58:01 +0200
committerJan Schmidt <thaytan@noraisin.net>2009-06-20 15:21:34 +0100
commitb8a79867754e5ac7fcd66b0172db675297554451 (patch)
tree969ca2557f6daee3787cdd5322cd34b598d5744e /sys
parent3a7a2af1faf00ec3c2cc47fb03dfc01c9dab9eed (diff)
downloadgst-plugins-bad-b8a79867754e5ac7fcd66b0172db675297554451.tar.gz
gst-plugins-bad-b8a79867754e5ac7fcd66b0172db675297554451.tar.bz2
gst-plugins-bad-b8a79867754e5ac7fcd66b0172db675297554451.zip
vdpaumpegdec: set full_pel_forward_vector to 0 when pic_type == P_FRAME
Diffstat (limited to 'sys')
-rw-r--r--sys/vdpau/mpegutil.c3
1 files changed, 2 insertions, 1 deletions
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;