aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-08-26 14:56:01 +0200
committerDiego Biurrun <diego@biurrun.de>2016-08-30 22:06:47 +0200
commit72eba6558ee4f10239ba3f472c0b033ec70082a7 (patch)
treec0b03433ab3cf325602df8ab41e1e12b7683aac9
parent80fc75d51e3312e1890591048eb6a3d499b6e49d (diff)
downloadffmpeg-72eba6558ee4f10239ba3f472c0b033ec70082a7.tar.gz
wmavoice: Simplify GetBitContext initialization
-rw-r--r--libavcodec/wmavoice.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c
index 62b603c6aa..19c06f4472 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)