mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 15:04:46 +00:00
codecparsers: h264: fix derivation of MaxPicNum variable.
The logic to compute the MaxPicNum variable was reversed. In paricular, MaxPicNum is double MaxFrameNum only if field_pic_flag is set to 1. https://bugzilla.gnome.org/show_bug.cgi?id=739291
This commit is contained in:
parent
402e1a067a
commit
8c76b5897a
1 changed files with 2 additions and 2 deletions
|
@ -2176,9 +2176,9 @@ gst_h264_parser_parse_slice_hdr (GstH264NalParser * nalparser,
|
|||
|
||||
/* calculate MaxPicNum */
|
||||
if (slice->field_pic_flag)
|
||||
slice->max_pic_num = sps->max_frame_num;
|
||||
else
|
||||
slice->max_pic_num = 2 * sps->max_frame_num;
|
||||
else
|
||||
slice->max_pic_num = sps->max_frame_num;
|
||||
|
||||
if (nalu->idr_pic_flag)
|
||||
READ_UE_ALLOWED (&nr, slice->idr_pic_id, 0, G_MAXUINT16);
|
||||
|
|
Loading…
Reference in a new issue