summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-02-22 00:21:43 +0000
committerjstebbins <[email protected]>2014-02-22 00:21:43 +0000
commit537a21e921065b9cb846ce49594e38e1dd5a7956 (patch)
treec14bdbb9a1a5fb260ec43f45bed5083f99723265 /libhb
parentf2ca02b9220a88a018759932dd9608b2de8a91cf (diff)
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
Diffstat (limited to 'libhb')
-rw-r--r--libhb/decavcodec.c6
1 files changed, 3 insertions, 3 deletions
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;
}