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:
parent
bd35dfeaa0
commit
c9dc66375b
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user