aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-03-02 19:42:31 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-03-02 19:42:31 +0000
commitedd532db64335ef7e41b83fd3fce6e2ad2592a7e (patch)
tree8e660d15a4370dc9cb20102adb2aa942ff00a7cb
parentee4d0322e8cd1c0aa0bef1b2154ac246cb511502 (diff)
downloadffmpeg-edd532db64335ef7e41b83fd3fce6e2ad2592a7e.tar.gz
Simplify show_bits_long and copy the GetBitsContext around only once instead of twice.
Originally committed as revision 17736 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/bitstream.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/bitstream.h b/libavcodec/bitstream.h
index e1ec934b28..0b336f747f 100644
--- a/libavcodec/bitstream.h
+++ b/libavcodec/bitstream.h
@@ -713,9 +713,7 @@ static inline unsigned int show_bits_long(GetBitContext *s, int n){
if(n<=17) return show_bits(s, n);
else{
GetBitContext gb= *s;
- int ret= get_bits_long(s, n);
- *s= gb;
- return ret;
+ return get_bits_long(&gb, n);
}
}