Mercurial > libavcodec.hg
changeset 2464:ab390f13c7f5 libavcodec
dont duplicate decode012()
author | michael |
---|---|
date | Tue, 25 Jan 2005 01:40:58 +0000 |
parents | 9baa47d8297b |
children | 5565203c95ee |
files | bitstream.h msmpeg4.c vc9.c |
diffstat | 3 files changed, 9 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/bitstream.h Tue Jan 25 01:29:10 2005 +0000 +++ b/bitstream.h Tue Jan 25 01:40:58 2005 +0000 @@ -824,4 +824,13 @@ #define tprintf(...) {} #endif +static int decode012(GetBitContext *gb){ + int n; + n = get_bits1(gb); + if (n == 0) + return 0; + else + return get_bits1(gb) + 1; +} + #endif /* BITSTREAM_H */
--- a/msmpeg4.c Tue Jan 25 01:29:10 2005 +0000 +++ b/msmpeg4.c Tue Jan 25 01:40:58 2005 +0000 @@ -1195,16 +1195,6 @@ return 0; } -static int decode012(GetBitContext *gb) -{ - int n; - n = get_bits1(gb); - if (n == 0) - return 0; - else - return get_bits1(gb) + 1; -} - int msmpeg4_decode_picture_header(MpegEncContext * s) { int code;
--- a/vc9.c Tue Jan 25 01:29:10 2005 +0000 +++ b/vc9.c Tue Jan 25 01:40:58 2005 +0000 @@ -299,16 +299,6 @@ #endif } -static int decode012(GetBitContext *gb) -{ - int n; - n = get_bits1(gb); - if (n == 0) - return 0; - else - return get_bits1(gb) + 1; -} - static int init_common(VC9Context *v) { static int done = 0;