diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-03-02 19:42:31 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-03-02 19:42:31 +0000 |
commit | edd532db64335ef7e41b83fd3fce6e2ad2592a7e (patch) | |
tree | 8e660d15a4370dc9cb20102adb2aa942ff00a7cb | |
parent | ee4d0322e8cd1c0aa0bef1b2154ac246cb511502 (diff) | |
download | ffmpeg-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.h | 4 |
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); } } |