projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee4d032
)
Simplify show_bits_long and copy the GetBitsContext around only once instead of twice.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Mon, 2 Mar 2009 19:42:31 +0000
(19:42 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Mon, 2 Mar 2009 19:42:31 +0000
(19:42 +0000)
Originally committed as revision 17736 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/bitstream.h
patch
|
blob
|
history
diff --git
a/libavcodec/bitstream.h
b/libavcodec/bitstream.h
index e1ec934b28203a4fe0ca0b5254f01dafd9117a2c..0b336f747f80ef56b46e8f8a5d1900883fca85e6 100644
(file)
--- 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);
}
}