mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/avuienc: move pointer declaration to where its used
Found-by: CSA Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
17fef17f67
commit
08b6591cf6
@ -52,7 +52,7 @@ static av_cold int avui_encode_init(AVCodecContext *avctx)
|
|||||||
static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||||
const AVFrame *pic, int *got_packet)
|
const AVFrame *pic, int *got_packet)
|
||||||
{
|
{
|
||||||
uint8_t *dst, *src = pic->data[0];
|
uint8_t *dst;
|
||||||
int i, j, skip, ret, size, interlaced;
|
int i, j, skip, ret, size, interlaced;
|
||||||
|
|
||||||
interlaced = avctx->field_order > AV_FIELD_PROGRESSIVE;
|
interlaced = avctx->field_order > AV_FIELD_PROGRESSIVE;
|
||||||
@ -74,6 +74,7 @@ static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
|
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
|
||||||
|
|
||||||
for (i = 0; i <= interlaced; i++) {
|
for (i = 0; i <= interlaced; i++) {
|
||||||
|
uint8_t *src;
|
||||||
if (interlaced && avctx->height == 486) {
|
if (interlaced && avctx->height == 486) {
|
||||||
src = pic->data[0] + (1 - i) * pic->linesize[0];
|
src = pic->data[0] + (1 - i) * pic->linesize[0];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user