[FFmpeg-cvslog] metasound & twinvqdec: return the number of read bytes from read_bitstream

Michael Niedermayer git at videolan.org
Fri Oct 25 17:47:02 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Oct 25 17:23:13 2013 +0200| [cbb7f56dfeb15c150df20109c3847bf677ad316f] | committer: Michael Niedermayer

metasound & twinvqdec: return the number of read bytes from read_bitstream

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

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

 libavcodec/metasound.c |    2 +-
 libavcodec/twinvqdec.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/metasound.c b/libavcodec/metasound.c
index 9cda336..5c65f03 100644
--- a/libavcodec/metasound.c
+++ b/libavcodec/metasound.c
@@ -226,7 +226,7 @@ static int metasound_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
         }
     }
 
-    return 0;
+    return (get_bits_count(&gb) + 7) / 8;
 }
 
 typedef struct MetasoundProps {
diff --git a/libavcodec/twinvqdec.c b/libavcodec/twinvqdec.c
index 067df56..5e565db 100644
--- a/libavcodec/twinvqdec.c
+++ b/libavcodec/twinvqdec.c
@@ -312,7 +312,7 @@ static int twinvq_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
         }
     }
 
-    return 0;
+    return (get_bits_count(&gb) + 7) / 8;
 }
 
 static av_cold int twinvq_decode_init(AVCodecContext *avctx)



More information about the ffmpeg-cvslog mailing list