[FFmpeg-cvslog] hevc : fix pcm( cherry picked from commit 12bbfdba1899d11044d2bd8457159fc8b4b52a76)

gcocherel git at videolan.org
Thu Nov 21 22:53:02 CET 2013


ffmpeg | branch: master | gcocherel <gildas.cocherel at laposte.net> | Thu Nov 21 11:16:53 2013 +0100| [0afa254d4efd3c06fd0194789aefc193c8506947] | committer: Michael Niedermayer

hevc : fix pcm(cherry picked from commit 12bbfdba1899d11044d2bd8457159fc8b4b52a76)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0afa254d4efd3c06fd0194789aefc193c8506947
---

 libavcodec/hevc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index eb3cb75..9e6c24c 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -971,7 +971,7 @@ static int hls_pcm_sample(HEVCContext *s, int x0, int y0, int log2_cb_size)
     int   stride2 = s->frame->linesize[2];
     uint8_t *dst2 = &s->frame->data[2][(y0 >> s->sps->vshift[2]) * stride2 + ((x0 >> s->sps->hshift[2]) << s->sps->pixel_shift)];
 
-    int length         = cb_size * cb_size * s->sps->pcm.bit_depth + ((cb_size * cb_size) >> 1) * s->sps->pcm.bit_depth;
+    int length         = cb_size * cb_size * s->sps->pcm.bit_depth + ((cb_size * cb_size) >> 1) * s->sps->pcm.bit_depth_chroma;
     const uint8_t *pcm = skip_bytes(&s->HEVClc->cc, (length + 7) >> 3);
     int ret;
 



More information about the ffmpeg-cvslog mailing list