You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/zerocodec: Avoid undefined NULL - 0
Fixes the zerocodec FATE-test. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -84,11 +84,12 @@ static int zerocodec_decode_frame(AVCodecContext *avctx, AVFrame *pic,
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
if (!(avpkt->flags & AV_PKT_FLAG_KEY))
|
||||
if (!(avpkt->flags & AV_PKT_FLAG_KEY)) {
|
||||
for (j = 0; j < avctx->width << 1; j++)
|
||||
dst[j] += prev[j] & -!dst[j];
|
||||
|
||||
prev -= prev_pic->linesize[0];
|
||||
}
|
||||
|
||||
dst -= pic->linesize[0];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user