Revision 3ab354d7 libavcodec/libx264.c

View differences:

libavcodec/libx264.c
100 100
        }
101 101

  
102 102
        x4->pic.i_pts  = frame->pts;
103
        x4->pic.i_type = X264_TYPE_AUTO;
103
        x4->pic.i_type =
104
            frame->pict_type == FF_I_TYPE ? X264_TYPE_KEYFRAME :
105
            frame->pict_type == FF_P_TYPE ? X264_TYPE_P :
106
            frame->pict_type == FF_B_TYPE ? X264_TYPE_B :
107
                                            X264_TYPE_AUTO;
104 108
    }
105 109

  
106 110
    do {

Also available in: Unified diff