mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-14 05:13:44 +08:00
[h264e]: add timing_info_present parameter of vui
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com> Change-Id: Idff0e752ae151c998968d5e559a658a8cab256c4
This commit is contained in:
5
mpp/codec/enc/h264/h264e_sps.c
Executable file → Normal file
5
mpp/codec/enc/h264/h264e_sps.c
Executable file → Normal file
@@ -159,6 +159,11 @@ MPP_RET h264e_sps_update(SynH264eSps *sps, MppEncCfgSet *cfg, MppDeviceId dev)
|
||||
}
|
||||
|
||||
memset(vui, 0, sizeof(*vui));
|
||||
vui->vui_present = 1;
|
||||
vui->timing_info_present = 1;
|
||||
vui->time_scale = rc->fps_out_num * 2;
|
||||
vui->num_units_in_tick = rc->fps_out_denorm;
|
||||
vui->fixed_frame_rate = !rc->fps_out_flex;
|
||||
|
||||
return MPP_OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user