diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-02 20:13:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-02 20:13:08 +0200 |
commit | 08b6591cf6d33363c5e8163ce60ebeaa76ed2e74 (patch) | |
tree | b865165ea55beb65be653eff6664de8e45e59bb8 /libavcodec/avuienc.c | |
parent | 17fef17f67c52ff834fe1a2894393170768fcf0a (diff) | |
download | ffmpeg-08b6591cf6d33363c5e8163ce60ebeaa76ed2e74.tar.gz |
avcodec/avuienc: move pointer declaration to where its used
Found-by: CSA
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avuienc.c')
-rw-r--r-- | libavcodec/avuienc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/avuienc.c b/libavcodec/avuienc.c index eb0046cf5c..700b8cbd4b 100644 --- a/libavcodec/avuienc.c +++ b/libavcodec/avuienc.c @@ -52,7 +52,7 @@ static av_cold int avui_encode_init(AVCodecContext *avctx) static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic, int *got_packet) { - uint8_t *dst, *src = pic->data[0]; + uint8_t *dst; int i, j, skip, ret, size, interlaced; 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; for (i = 0; i <= interlaced; i++) { + uint8_t *src; if (interlaced && avctx->height == 486) { src = pic->data[0] + (1 - i) * pic->linesize[0]; } else { |