mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-01 13:36:26 +08:00
flashsvenc: merge two consecutive if-conditions
This commit is contained in:
@ -230,10 +230,9 @@ static int flashsv_encode_frame(AVCodecContext *avctx, uint8_t *buf,
|
|||||||
pfptr = s->previous_frame;
|
pfptr = s->previous_frame;
|
||||||
|
|
||||||
/* Check the placement of keyframes */
|
/* Check the placement of keyframes */
|
||||||
if (avctx->gop_size > 0) {
|
if (avctx->gop_size > 0 &&
|
||||||
if (avctx->frame_number >= s->last_key_frame + avctx->gop_size) {
|
avctx->frame_number >= s->last_key_frame + avctx->gop_size) {
|
||||||
I_frame = 1;
|
I_frame = 1;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buf_size < s->image_width * s->image_height * 3) {
|
if (buf_size < s->image_width * s->image_height * 3) {
|
||||||
|
Reference in New Issue
Block a user