From 42d90ddfa3b25222ed9b37d7e0ba2030715ee8be Mon Sep 17 00:00:00 2001 From: Carl-Anton Ingmarsson Date: Tue, 5 May 2009 18:45:07 +0200 Subject: vdpaumpegdec: don't add forward_reference if the frame is an I_FRAME --- sys/vdpau/gstvdpmpegdecoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/vdpau/gstvdpmpegdecoder.c b/sys/vdpau/gstvdpmpegdecoder.c index 838b4e5a..cf8bfe54 100644 --- a/sys/vdpau/gstvdpmpegdecoder.c +++ b/sys/vdpau/gstvdpmpegdecoder.c @@ -183,7 +183,8 @@ gst_vdp_mpeg_decoder_decode (GstVdpMpegDecoder * mpeg_dec, outbuf = gst_vdp_video_buffer_new (dec->device, VDP_CHROMA_TYPE_420, dec->width, dec->height); GST_BUFFER_TIMESTAMP (outbuf) = timestamp; - if (mpeg_dec->vdp_info.forward_reference != VDP_INVALID_HANDLE) + if (mpeg_dec->vdp_info.forward_reference != VDP_INVALID_HANDLE && + mpeg_dec->vdp_info.picture_coding_type != I_FRAME) gst_vdp_video_buffer_add_reference (outbuf, GST_VDP_VIDEO_BUFFER (mpeg_dec->f_buffer)); if (mpeg_dec->vdp_info.backward_reference != VDP_INVALID_HANDLE) -- cgit v1.2.1