/* frame number/poc */
int i_frame;
- int i_poc;
int i_frame_offset; /* decoding only */
int i_frame_num; /* decoding only */
int i_poc_msb; /* decoding only */
int i_poc_lsb; /* decoding only */
+ int i_poc; /* decoding only */
/* We use only one SPS and one PPS */
x264_sps_t sps_array[32];
h->i_frame = 0;
h->i_frame_num = 0;
- h->i_poc = 0;
h->i_idr_pic_id = 0;
h->sps = &h->sps_array[0];
i_slice_type = SLICE_TYPE_B;
}
+ h->fdec->i_poc =
+ h->fenc->i_poc = 2 * (h->fenc->i_frame - h->frames.i_last_idr);
h->fdec->i_type = h->fenc->i_type;
- h->fdec->i_poc = h->fenc->i_poc;
h->fdec->i_frame = h->fenc->i_frame;
h->fenc->b_kept_as_ref =
h->fdec->b_kept_as_ref = i_nal_ref_idc != NAL_PRIORITY_DISPOSABLE;
x264_frame_t *tmp;
/* Reset */
- h->i_poc = 0;
h->i_frame_num = 0;
/* Reinit field of fenc */
h->fenc->i_type = X264_TYPE_IDR;
h->fenc->i_poc = 0;
- /* Next Poc */
- h->i_poc += 2;
-
/* Put enqueued frames back in the pool */
while( (tmp = x264_frame_get( h->frames.current ) ) != NULL )
x264_frame_put( h->frames.next, tmp );