aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rv30.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2007-12-07 05:56:07 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2007-12-07 05:56:07 +0000
commit4978618b6b0d072fec16efa41735050b3000da14 (patch)
tree81847904fc3da59b6d34b2e6df3010b35f9f3d68 /libavcodec/rv30.c
parentb192e56461cfd83c5d3b7929b82b67395edbaa8e (diff)
downloadffmpeg-4978618b6b0d072fec16efa41735050b3000da14.tar.gz
Use existing function for VLC reading
Originally committed as revision 11185 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv30.c')
-rw-r--r--libavcodec/rv30.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/rv30.c b/libavcodec/rv30.c
index d6ca922380..ff7b32d1e4 100644
--- a/libavcodec/rv30.c
+++ b/libavcodec/rv30.c
@@ -27,6 +27,7 @@
#include "avcodec.h"
#include "dsputil.h"
#include "mpegvideo.h"
+#include "golomb.h"
#include "rv34.h"
#include "rv30data.h"
@@ -66,7 +67,7 @@ static int rv30_decode_intra_types(RV34DecContext *r, GetBitContext *gb, int8_t
for(i = 0; i < 4; i++, dst += r->s.b4_stride - 4){
for(j = 0; j < 4; j+= 2){
- int code = (ff_rv34_get_gamma(gb) - 1) << 1;
+ int code = svq3_get_ue_golomb(gb) << 1;
if(code >= 81*2){
av_log(r->s.avctx, AV_LOG_ERROR, "Incorrect intra prediction code\n");
return -1;
@@ -94,7 +95,7 @@ static int rv30_decode_mb_info(RV34DecContext *r)
static const int rv30_b_types[6] = { RV34_MB_SKIP, RV34_MB_B_DIRECT, RV34_MB_B_FORWARD, RV34_MB_B_BACKWARD, RV34_MB_TYPE_INTRA, RV34_MB_TYPE_INTRA16x16 };
MpegEncContext *s = &r->s;
GetBitContext *gb = &s->gb;
- int code = ff_rv34_get_gamma(gb) - 1;
+ int code = svq3_get_ue_golomb(gb);
if(code > 11){
av_log(s->avctx, AV_LOG_ERROR, "Incorrect MB type code\n");