Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
hevc: fix offset for sao temporary frame
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
libavcodec/hevc.c
|
|
@@ -285,7 +285,7 @@ static int get_buffer_sao(HEVCContext *s, AVFrame *frame) |
|
|
if ((ret = ff_get_buffer(s->avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0) |
|
|
return ret; |
|
|
for (i = 0; frame->data[i]; i++) { |
|
|
int offset = frame->linesize[i] + 1; |
|
|
int offset = frame->linesize[i] + (1 << s->sps->pixel_shift); |
|
|
frame->data[i] += offset; |
|
|
} |
|
|
frame->width = s->avctx->width; |
|
|
|