From 537a21e921065b9cb846ce49594e38e1dd5a7956 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sat, 22 Feb 2014 00:21:43 +0000 Subject: libhb: fix a problem decoding wmapro audio ... and probably some other audio types. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6054 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/decavcodec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libhb/decavcodec.c') diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index 1a3132eb6..4a0b925a7 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -667,10 +667,9 @@ static int decavcodecaBSInfo( hb_work_object_t *w, const hb_buffer_t *buf, } else { - pbuffer = buf->data; - len = pbuffer_size = buf->size; + pbuffer = buf->data + pos; + len = pbuffer_size = buf->size - pos; } - pos += len; // libavcodec can't decode TrueHD Mono (bug #356) // work around it by requesting Stereo before decoding @@ -770,6 +769,7 @@ static int decavcodecaBSInfo( hb_work_object_t *w, const hb_buffer_t *buf, break; } } + pos += len; } buf = buf->next; } -- cgit v1.2.3