mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-02 02:30:58 +00:00
Merge commit 'ca09effb01e126b0ac74ff3de70a475423ddee82'
* commit 'ca09effb01e126b0ac74ff3de70a475423ddee82': ffv1: Drop unnecessary casts and const qualifiers to match function signatures Conflicts: libavcodec/ffv1dec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
f4cc19cdd0
@ -854,13 +854,13 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
|||||||
|
|
||||||
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
|
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
|
||||||
{
|
{
|
||||||
const uint8_t *buf = avpkt->data;
|
uint8_t *buf = avpkt->data;
|
||||||
int buf_size = avpkt->size;
|
int buf_size = avpkt->size;
|
||||||
FFV1Context *f = avctx->priv_data;
|
FFV1Context *f = avctx->priv_data;
|
||||||
RangeCoder *const c = &f->slice_context[0]->c;
|
RangeCoder *const c = &f->slice_context[0]->c;
|
||||||
int i, ret;
|
int i, ret;
|
||||||
uint8_t keystate = 128;
|
uint8_t keystate = 128;
|
||||||
const uint8_t *buf_p;
|
uint8_t *buf_p;
|
||||||
AVFrame *p;
|
AVFrame *p;
|
||||||
|
|
||||||
if (f->last_picture.f)
|
if (f->last_picture.f)
|
||||||
@ -938,7 +938,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac
|
|||||||
if (i) {
|
if (i) {
|
||||||
ff_init_range_decoder(&fs->c, buf_p, v);
|
ff_init_range_decoder(&fs->c, buf_p, v);
|
||||||
} else
|
} else
|
||||||
fs->c.bytestream_end = (uint8_t *)(buf_p + v);
|
fs->c.bytestream_end = buf_p + v;
|
||||||
|
|
||||||
fs->avctx = avctx;
|
fs->avctx = avctx;
|
||||||
fs->cur = p;
|
fs->cur = p;
|
||||||
@ -966,7 +966,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac
|
|||||||
src[j] = f->last_picture.f->data[j] + f->last_picture.f->linesize[j] *
|
src[j] = f->last_picture.f->data[j] + f->last_picture.f->linesize[j] *
|
||||||
(fs->slice_y >> sv) + (fs->slice_x >> sh);
|
(fs->slice_y >> sv) + (fs->slice_x >> sh);
|
||||||
}
|
}
|
||||||
av_image_copy(dst, p->linesize, (const uint8_t **)src,
|
av_image_copy(dst, p->linesize, src,
|
||||||
f->last_picture.f->linesize,
|
f->last_picture.f->linesize,
|
||||||
avctx->pix_fmt,
|
avctx->pix_fmt,
|
||||||
fs->slice_width,
|
fs->slice_width,
|
||||||
|
Loading…
Reference in New Issue
Block a user