Revision f8567560 libavcodec/svq1.c

View differences:

libavcodec/svq1.c
1355 1355
    init_put_bits(&s->pb, buf, buf_size);
1356 1356

  
1357 1357
    *p = *pict;
1358
    p->pict_type = avctx->frame_number % avctx->gop_size ? P_TYPE : I_TYPE;
1358
    p->pict_type = avctx->gop_size && avctx->frame_number % avctx->gop_size ? P_TYPE : I_TYPE;
1359 1359
    p->key_frame = p->pict_type == I_TYPE;
1360 1360

  
1361 1361
    svq1_write_header(s, p->pict_type);

Also available in: Unified diff