X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Froqvideodec.c;h=5f0b2047c6857dadb4f3249eb3efe9f915d11324;hb=da7cfef7f0c98c05571c62d344aad83e0e85d0fb;hp=c1ff3f109f561ae391c225a077bd5a55e9045157;hpb=b95b8e5a2269f8fe6c137a5994b7d273545993d9;p=ffmpeg diff --git a/libavcodec/roqvideodec.c b/libavcodec/roqvideodec.c index c1ff3f109f5..5f0b2047c68 100644 --- a/libavcodec/roqvideodec.c +++ b/libavcodec/roqvideodec.c @@ -204,14 +204,15 @@ static int roq_decode_frame(AVCodecContext *avctx, const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; RoqContext *s = avctx->priv_data; - int copy= !s->current_frame->data[0] && s->last_frame->data[0]; + int copy = !s->current_frame->data[0] && s->last_frame->data[0]; int ret; if ((ret = ff_reget_buffer(avctx, s->current_frame)) < 0) return ret; - if(copy) { - if ((ret = av_frame_copy(s->current_frame, s->last_frame)) < 0) + if (copy) { + ret = av_frame_copy(s->current_frame, s->last_frame); + if (ret < 0) return ret; }