Skip to content

Commit 8314107

Browse files
ndufresnemchehab
authored andcommitted
media: hantro: Stop using H.264 parameter pic_num
The hardware expects FrameNumWrap or long_term_frame_idx. Picture numbers are per field, and are mostly used during the memory management process, which is done in userland. This fixes two ITU conformance tests: - MR6_BT_B - MR8_BT_B Signed-off-by: Nicolas Dufresne <[email protected]> Reviewed-by: Sebastian Fricke <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent ed7bb87 commit 8314107

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/staging/media/hantro/hantro_h264.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,6 @@ u16 hantro_h264_get_ref_nbr(struct hantro_ctx *ctx, unsigned int dpb_idx)
354354

355355
if (!(dpb->flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE))
356356
return 0;
357-
if (dpb->flags & V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM)
358-
return dpb->pic_num;
359357
return dpb->frame_num;
360358
}
361359

0 commit comments

Comments
 (0)