Skip to content

Commit e5214b8

Browse files
committed
h264: set max_num_ref_frames in SPS
Signed-off-by: Philipp Zabel <[email protected]>
1 parent cd99a71 commit e5214b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/h264.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ static void h264_va_picture_to_v4l2(struct request_data *driver_data,
270270
if (VAPicture->pic_fields.bits.redundant_pic_cnt_present_flag)
271271
pps->flags |= V4L2_H264_PPS_FLAG_REDUNDANT_PIC_CNT_PRESENT;
272272

273+
sps->max_num_ref_frames = VAPicture->num_ref_frames;
273274
sps->chroma_format_idc = VAPicture->seq_fields.bits.chroma_format_idc;
274275
sps->bit_depth_luma_minus8 = VAPicture->bit_depth_luma_minus8;
275276
sps->bit_depth_chroma_minus8 = VAPicture->bit_depth_chroma_minus8;

0 commit comments

Comments
 (0)