Make decode210() common function.

Originally committed as revision 11382 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Kostya Shishkov
2008-01-03 09:16:56 +00:00
parent ca32534337
commit b44665c4e6
3 changed files with 7 additions and 14 deletions

View File

@@ -950,4 +950,11 @@ static inline int decode012(GetBitContext *gb){
return get_bits1(gb) + 1;
}
static inline int decode210(GetBitContext *gb){
if (get_bits1(gb))
return 0;
else
return 2 - get_bits1(gb);
}
#endif /* FFMPEG_BITSTREAM_H */