Mercurial > libavcodec.hg
comparison bitstream.h @ 6099:a2b438bcb1d2 libavcodec
Make decode210() common function.
| author | kostya |
|---|---|
| date | Thu, 03 Jan 2008 09:16:56 +0000 |
| parents | 1d83e9c34641 |
| children | 6335f2688c04 |
comparison
equal
deleted
inserted
replaced
| 6098:b7905ea98b8f | 6099:a2b438bcb1d2 |
|---|---|
| 948 return 0; | 948 return 0; |
| 949 else | 949 else |
| 950 return get_bits1(gb) + 1; | 950 return get_bits1(gb) + 1; |
| 951 } | 951 } |
| 952 | 952 |
| 953 static inline int decode210(GetBitContext *gb){ | |
| 954 if (get_bits1(gb)) | |
| 955 return 0; | |
| 956 else | |
| 957 return 2 - get_bits1(gb); | |
| 958 } | |
| 959 | |
| 953 #endif /* FFMPEG_BITSTREAM_H */ | 960 #endif /* FFMPEG_BITSTREAM_H */ |
