diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-01-03 20:41:18 -0800 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-01-04 10:57:37 -0800 |
commit | 89d26797f56ec52dae14f9c47b445c9a39e8ce56 (patch) | |
tree | f7eb2e32c4e84fab0b9a0f216d8df00797a6e5ac /libavcodec/bytestream.h | |
parent | 3d72a6f19e656afc52007b8ef9810aedabf41c29 (diff) | |
download | ffmpeg-89d26797f56ec52dae14f9c47b445c9a39e8ce56.tar.gz |
ulti: convert to new bytestream API.
Diffstat (limited to 'libavcodec/bytestream.h')
-rw-r--r-- | libavcodec/bytestream.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/bytestream.h b/libavcodec/bytestream.h index ba3e4e8802..8fbceacc4f 100644 --- a/libavcodec/bytestream.h +++ b/libavcodec/bytestream.h @@ -39,11 +39,15 @@ static av_always_inline void bytestream_put_ ##name(uint8_t **b, const type valu write(*b, value);\ (*b) += bytes;\ }\ +static av_always_inline type bytestream2_get_ ## name ## u(GetByteContext *g)\ +{\ + return bytestream_get_ ## name(&g->buffer);\ +}\ static av_always_inline type bytestream2_get_ ## name(GetByteContext *g)\ {\ if (g->buffer_end - g->buffer < bytes)\ return 0;\ - return bytestream_get_ ## name(&g->buffer);\ + return bytestream2_get_ ## name ## u(g);\ }\ static av_always_inline type bytestream2_peek_ ## name(GetByteContext *g)\ {\ |