Commit 5fe15785 authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '9cbae3a7'

* commit '9cbae3a7':
  roqvideodec: use av_frame_copy
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents af7c7037 9cbae3a7
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment