summaryrefslogtreecommitdiff
path: root/libavcodec/roqvideodec.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-10-27 14:07:36 +0100
committerHendrik Leppkes <h.leppkes@gmail.com>2015-10-27 14:07:36 +0100
commit5fe1578571367314f8f67cdbc33cfd4d129c3bf7 (patch)
tree28e396f48a05256392727f74218457ba28ad59ba /libavcodec/roqvideodec.c
parentaf7c7037150d572fa791b7465cda68d2ed720e02 (diff)
parent9cbae3a7d57bd2b862c37fd8123bd1fba680e801 (diff)
Merge commit '9cbae3a7d57bd2b862c37fd8123bd1fba680e801'
* commit '9cbae3a7d57bd2b862c37fd8123bd1fba680e801': roqvideodec: use av_frame_copy Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavcodec/roqvideodec.c')
-rw-r--r--libavcodec/roqvideodec.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/roqvideodec.c b/libavcodec/roqvideodec.c
index c1ff3f109f..5f0b2047c6 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;
}