Commit 374baca1 authored by Laurent Aimar's avatar Laurent Aimar

* encoder: correct range for i_idr_pic_id is 0..65535

 (Not 0..65534)


git-svn-id: svn://svn.videolan.org/x264/trunk@23 df754926-b1dd-0310-bc7b-ec298dee348c
parent 07a0494b
......@@ -627,7 +627,7 @@ static inline void x264_slice_init( x264_t *h, int i_nal_type, int i_slice_type,
x264_slice_header_init( &h->sh, &h->param, h->sps, h->pps, i_slice_type, h->i_idr_pic_id, h->i_frame_num - 1 );
/* increment id */
h->i_idr_pic_id = ( h->i_idr_pic_id + 1 ) % 65535;
h->i_idr_pic_id = ( h->i_idr_pic_id + 1 ) % 65536;
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment