mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
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:
parent
6c8b052bd3
commit
8bbe22f831
1 changed files with 1 additions and 4 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue