Browse Source

lavc: merge two if()s with the same condition.

tags/n0.11
Anton Khirnov 14 years ago
parent
commit
03ca0a5b30
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/utils.c

+ 1
- 2
libavcodec/utils.c View File

@@ -1112,10 +1112,9 @@ int attribute_align_arg avcodec_encode_video2(AVCodecContext *avctx,
avpkt->size = 0;
else if (!(avctx->codec->capabilities & CODEC_CAP_DELAY))
avpkt->pts = avpkt->dts = frame->pts;
}

if (!ret)
avctx->frame_number++;
}

emms_c();
return ret;


Loading…
Cancel
Save