summaryrefslogtreecommitdiff
path: root/libavcodec/roqvideodec.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-10-14 11:33:21 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-10-21 11:59:38 +0200
commitf0a106578d759de6183eea3c75f8373b6d3153c1 (patch)
treebf076ba756a7fbdd870e49b97bc265a7edf0da1c /libavcodec/roqvideodec.c
parentef3a3519c10620c4206738595bf03fc0bed71802 (diff)
roqvideodec: Replace avpicture functions with imgutils
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec/roqvideodec.c')
-rw-r--r--libavcodec/roqvideodec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/roqvideodec.c b/libavcodec/roqvideodec.c
index 0ce694388f..acdae751c1 100644
--- a/libavcodec/roqvideodec.c
+++ b/libavcodec/roqvideodec.c
@@ -29,6 +29,8 @@
#include <stdlib.h>
#include <string.h>
+#include "libavutil/imgutils.h"
+
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
@@ -199,8 +201,9 @@ static int roq_decode_frame(AVCodecContext *avctx,
}
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);