From 374baca15e0ce069cadd4c32633f915b6f8294b0 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Mon, 9 Aug 2004 00:05:22 +0000 Subject: [PATCH] * 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 --- encoder/encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoder/encoder.c b/encoder/encoder.c index 4d5a8c76..a3b9481a 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -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 { -- 2.39.2