We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c36541 commit 0a8ce1cCopy full SHA for 0a8ce1c
libavcodec/hevc.c
@@ -285,7 +285,7 @@ static int get_buffer_sao(HEVCContext *s, AVFrame *frame)
285
if ((ret = ff_get_buffer(s->avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0)
286
return ret;
287
for (i = 0; frame->data[i]; i++) {
288
- int offset = frame->linesize[i] + 1;
+ int offset = frame->linesize[i] + (1 << s->sps->pixel_shift);
289
frame->data[i] += offset;
290
}
291
frame->width = s->avctx->width;
0 commit comments