Browse Source

flashsvenc: merge two consecutive if-conditions

tags/n0.9
Diego Biurrun 14 years ago
parent
commit
59ef6bded5
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      libavcodec/flashsvenc.c

+ 3
- 4
libavcodec/flashsvenc.c View File

@@ -230,10 +230,9 @@ static int flashsv_encode_frame(AVCodecContext *avctx, uint8_t *buf,
pfptr = s->previous_frame;

/* Check the placement of keyframes */
if (avctx->gop_size > 0) {
if (avctx->frame_number >= s->last_key_frame + avctx->gop_size) {
I_frame = 1;
}
if (avctx->gop_size > 0 &&
avctx->frame_number >= s->last_key_frame + avctx->gop_size) {
I_frame = 1;
}

if (buf_size < s->image_width * s->image_height * 3) {


Loading…
Cancel
Save