mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
zmbv: use av_image_copy_plane()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
994e09345e
commit
2786ac777d
@ -28,6 +28,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
|
#include "libavutil/imgutils.h"
|
||||||
#include "libavutil/intreadwrite.h"
|
#include "libavutil/intreadwrite.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
@ -554,11 +555,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac
|
|||||||
case ZMBV_FMT_24BPP:
|
case ZMBV_FMT_24BPP:
|
||||||
#endif
|
#endif
|
||||||
case ZMBV_FMT_32BPP:
|
case ZMBV_FMT_32BPP:
|
||||||
for (j = 0; j < c->height; j++) {
|
av_image_copy_plane(out, frame->linesize[0], src, c->stride,
|
||||||
memcpy(out, src, c->stride);
|
c->stride, c->height);
|
||||||
src += c->stride;
|
|
||||||
out += frame->linesize[0];
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
av_log(avctx, AV_LOG_ERROR, "Cannot handle format %i\n", c->fmt);
|
av_log(avctx, AV_LOG_ERROR, "Cannot handle format %i\n", c->fmt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user