ffmpeg | branch: master | Diego Biurrun <di...@biurrun.de> | Fri Aug 26 
14:56:01 2016 +0200| [72eba6558ee4f10239ba3f472c0b033ec70082a7] | committer: 
Diego Biurrun

wmavoice: Simplify GetBitContext initialization

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

 libavcodec/wmavoice.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c
index 62b603c..19c06f4 100644
--- a/libavcodec/wmavoice.c
+++ b/libavcodec/wmavoice.c
@@ -1672,9 +1672,7 @@ static int check_bits_for_superframe(GetBitContext 
*orig_gb,
     const struct frame_type_desc *frame_desc;
 
     /* initialize a copy */
-    init_get_bits(gb, orig_gb->buffer, orig_gb->size_in_bits);
-    skip_bits_long(gb, get_bits_count(orig_gb));
-    assert(get_bits_left(gb) == get_bits_left(orig_gb));
+    *gb = *orig_gb;
 
     /* superframe header */
     if (get_bits_left(gb) < 14)

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to