[libav-commits] pcm_mpeg: fix number of consumed bytes to include the header.

Hendrik Leppkes git at libav.org
Tue May 29 16:48:26 CEST 2012


Module: libav
Branch: master
Commit: c58bcead3b84765ee7bc22258bca672fc0d63733

Author:    Hendrik Leppkes <h.leppkes at gmail.com>
Committer: Janne Grunau <janne-libav at jannau.net>
Date:      Tue Apr 10 19:49:14 2012 +0200

pcm_mpeg: fix number of consumed bytes to include the header.

Signed-off-by: Janne Grunau <janne-libav at jannau.net>

---

 libavcodec/pcm-mpeg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/pcm-mpeg.c b/libavcodec/pcm-mpeg.c
index 51a08d6..8340715 100644
--- a/libavcodec/pcm-mpeg.c
+++ b/libavcodec/pcm-mpeg.c
@@ -311,7 +311,7 @@ static int pcm_bluray_decode_frame(AVCodecContext *avctx, void *data,
     if (avctx->debug & FF_DEBUG_BITSTREAM)
         av_dlog(avctx, "pcm_bluray_decode_frame: decoded %d -> %d bytes\n",
                 retval, buf_size);
-    return retval;
+    return retval + 4;
 }
 
 AVCodec ff_pcm_bluray_decoder = {



More information about the libav-commits mailing list