1 Index: encoder/slicetype.c
2 ===================================================================
3 --- encoder/slicetype.c (revision 665)
4 +++ encoder/slicetype.c (working copy)
7 frames[0] = h->frames.last_nonb;
8 for( j = 0; h->frames.next[j]; j++ )
10 + // if the app wants an IDR, give it to them
11 + if ( h->frames.next[j]->i_type == X264_TYPE_IDR )
13 frames[j+1] = h->frames.next[j];
15 keyint_limit = h->param.i_keyint_max - frames[0]->i_frame + h->frames.i_last_idr - 1;
16 num_frames = X264_MIN( j, keyint_limit );