Merge commit 'f0a106578d759de6183eea3c75f8373b6d3153c1'

* commit 'f0a106578d759de6183eea3c75f8373b6d3153c1':
  roqvideodec: Replace avpicture functions with imgutils

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
pull/155/head
Hendrik Leppkes 10 years ago
commit 42b87ed01e
  1. 5
      libavcodec/roqvideodec.c

@ -26,6 +26,8 @@
*/ */
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "internal.h" #include "internal.h"
@ -209,7 +211,8 @@ static int roq_decode_frame(AVCodecContext *avctx,
return ret; return ret;
if(copy) if(copy)
av_picture_copy((AVPicture*)s->current_frame, (AVPicture*)s->last_frame, 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); avctx->pix_fmt, avctx->width, avctx->height);
bytestream2_init(&s->gb, buf, buf_size); bytestream2_init(&s->gb, buf, buf_size);

Loading…
Cancel
Save