From 8bbe22f831182e77d417788bb44e4aeaf2a07b0e Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Fri, 24 Feb 2012 12:53:30 +0100 Subject: [PATCH] mpeg2: fix slice_vertical_position calculation (again). VA-API expects slice_vertical_position as the initial position from the bitstream. i.e. the direct slice() information. VA drivers will be fixed accordingly. --- gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c index e98a3f4a09..11bbe93258 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c @@ -710,10 +710,7 @@ decode_slice( } macroblock_offset = gst_bit_reader_get_pos(&br); - mb_y = slice_no << !GST_VAAPI_PICTURE_IS_FRAME(picture); - if (GST_VAAPI_PICTURE_IS_BOTTOM_FIELD(picture)) - mb_y++; - + mb_y = slice_no; mb_x = -1; do { if (!decode_vlc(&br, &mb_inc, mpeg2_mbaddr_vlc_table,