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.
This commit is contained in:
Gwenole Beauchesne 2012-02-24 12:53:30 +01:00
parent 6c8b052bd3
commit 8bbe22f831

View file

@ -710,10 +710,7 @@ decode_slice(
} }
macroblock_offset = gst_bit_reader_get_pos(&br); macroblock_offset = gst_bit_reader_get_pos(&br);
mb_y = slice_no << !GST_VAAPI_PICTURE_IS_FRAME(picture); mb_y = slice_no;
if (GST_VAAPI_PICTURE_IS_BOTTOM_FIELD(picture))
mb_y++;
mb_x = -1; mb_x = -1;
do { do {
if (!decode_vlc(&br, &mb_inc, mpeg2_mbaddr_vlc_table, if (!decode_vlc(&br, &mb_inc, mpeg2_mbaddr_vlc_table,