提交 33025ab9 编写于 作者: P Paul B Mahol

avcodec/cfhdenc: do not try to encode junk

上级 fbfa7850
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册