Skip to content
Permalink
Browse files

hevc: fix offset for sao temporary frame

  • Loading branch information
mraulet committed Jul 19, 2014
1 parent 1c36541 commit 0a8ce1cbdaff7cd026bcf95ee3787bc7b4c063ee
Showing with 1 addition and 1 deletion.
  1. +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;

0 comments on commit 0a8ce1c

Please sign in to comment.