mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec/cfhdenc: do not try to encode junk
This commit is contained in:
parent
fbfa78508b
commit
33025ab976
@ -742,7 +742,7 @@ static int cfhd_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
|
||||
for (int m = 0; m < height; m++) {
|
||||
for (int j = 0; j < stride; j++) {
|
||||
int16_t index = FFSIGN(data[j]) * lut[FFABS(data[j])];
|
||||
int16_t index = j >= width ? 0 : FFSIGN(data[j]) * lut[FFABS(data[j])];
|
||||
|
||||
if (index < 0)
|
||||
index += 512;
|
||||
|
Loading…
x
Reference in New Issue
Block a user