mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-28 20:14:02 +08:00
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
This commit is contained in:
@ -713,9 +713,7 @@ static inline unsigned int show_bits_long(GetBitContext *s, int n){
|
|||||||
if(n<=17) return show_bits(s, n);
|
if(n<=17) return show_bits(s, n);
|
||||||
else{
|
else{
|
||||||
GetBitContext gb= *s;
|
GetBitContext gb= *s;
|
||||||
int ret= get_bits_long(s, n);
|
return get_bits_long(&gb, n);
|
||||||
*s= gb;
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user