diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2022-05-13 23:29:06 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-05-17 11:01:10 +0300 |
commit | e5991e1fd90295b1eb8326a4a6c09012d6c5fc8d (patch) | |
tree | 389aff51727d5704c72f161f901b1fbbe989ad76 /drivers/media/platform/nvidia | |
parent | adc8a8d6c98a5c996aad41bf1625d87829bd76ba (diff) | |
download | linux-e5991e1fd90295b1eb8326a4a6c09012d6c5fc8d.tar.xz |
media: h264: Store all fields into the unordered list
When the current picture is a field, store each field into the
unordered_list and preserve both top and bottom picture order
count.
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/platform/nvidia')
-rw-r--r-- | drivers/media/platform/nvidia/tegra-vde/h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/nvidia/tegra-vde/h264.c b/drivers/media/platform/nvidia/tegra-vde/h264.c index 4fb0aaad16d6..88f81a134ba0 100644 --- a/drivers/media/platform/nvidia/tegra-vde/h264.c +++ b/drivers/media/platform/nvidia/tegra-vde/h264.c @@ -820,7 +820,7 @@ static int tegra_vde_h264_setup_frames(struct tegra_ctx *ctx, if (err) return err; - if (b.refs[dpb_idx].pic_order_count < b.cur_pic_order_count) + if (b.refs[dpb_idx].top_field_order_cnt < b.cur_pic_order_count) h264->dpb_ref_frames_with_earlier_poc_nb++; } |