mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-16 12:00:06 +01:00
v210enc: Fix warning: ‘val’ may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -90,13 +90,13 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
|
|||||||
val = CLIP(*y++);
|
val = CLIP(*y++);
|
||||||
if (w == avctx->width - 2)
|
if (w == avctx->width - 2)
|
||||||
bytestream_put_le32(&p, val);
|
bytestream_put_le32(&p, val);
|
||||||
}
|
if (w < avctx->width - 3) {
|
||||||
if (w < avctx->width - 3) {
|
val |= (CLIP(*u++) << 10) | (CLIP(*y++) << 20);
|
||||||
val |= (CLIP(*u++) << 10) | (CLIP(*y++) << 20);
|
bytestream_put_le32(&p, val);
|
||||||
bytestream_put_le32(&p, val);
|
|
||||||
|
|
||||||
val = CLIP(*v++) | (CLIP(*y++) << 10);
|
val = CLIP(*v++) | (CLIP(*y++) << 10);
|
||||||
bytestream_put_le32(&p, val);
|
bytestream_put_le32(&p, val);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pdst += stride;
|
pdst += stride;
|
||||||
|
|||||||
Reference in New Issue
Block a user