Commit 42b87ed0 authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit 'f0a10657'

* commit 'f0a10657':
  roqvideodec: Replace avpicture functions with imgutils
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 9a6f1eea f0a10657
......@@ -26,6 +26,8 @@
*/
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
......@@ -209,8 +211,9 @@ static int roq_decode_frame(AVCodecContext *avctx,
return ret;
if(copy)
av_picture_copy((AVPicture*)s->current_frame, (AVPicture*)s->last_frame,
avctx->pix_fmt, avctx->width, avctx->height);
av_image_copy(s->current_frame->data, s->current_frame->linesize,
s->last_frame->data, s->last_frame->linesize,
avctx->pix_fmt, avctx->width, avctx->height);
bytestream2_init(&s->gb, buf, buf_size);
roqvideo_decode_frame(s);
......
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