Commit f0a10657 authored by Vittorio Giovara's avatar Vittorio Giovara

roqvideodec: Replace avpicture functions with imgutils

Signed-off-by: 's avatarVittorio Giovara <vittorio.giovara@gmail.com>
parent ef3a3519
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "libavutil/imgutils.h"
#include "avcodec.h" #include "avcodec.h"
#include "bytestream.h" #include "bytestream.h"
#include "internal.h" #include "internal.h"
...@@ -199,8 +201,9 @@ static int roq_decode_frame(AVCodecContext *avctx, ...@@ -199,8 +201,9 @@ static int roq_decode_frame(AVCodecContext *avctx,
} }
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,
avctx->pix_fmt, avctx->width, avctx->height); s->last_frame->data, s->last_frame->linesize,
avctx->pix_fmt, avctx->width, avctx->height);
bytestream2_init(&s->gb, buf, buf_size); bytestream2_init(&s->gb, buf, buf_size);
roqvideo_decode_frame(s); 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