comparison rv40.c @ 5995:a33699306850 libavcodec

Use existing function for VLC reading
author kostya
date Fri, 07 Dec 2007 05:56:07 +0000
parents 625b4a680d41
children d1b9b395b1db
comparison
equal deleted inserted replaced
5994:625b4a680d41 5995:a33699306850
25 */ 25 */
26 26
27 #include "avcodec.h" 27 #include "avcodec.h"
28 #include "dsputil.h" 28 #include "dsputil.h"
29 #include "mpegvideo.h" 29 #include "mpegvideo.h"
30 #include "golomb.h"
30 31
31 #include "rv34.h" 32 #include "rv34.h"
32 #include "rv40vlc2.h" 33 #include "rv40vlc2.h"
33 #include "rv40data.h" 34 #include "rv40data.h"
34 35
205 int mb_pos = s->mb_x + s->mb_y * s->mb_stride; 206 int mb_pos = s->mb_x + s->mb_y * s->mb_stride;
206 int blocks[RV34_MB_TYPES] = {0}; 207 int blocks[RV34_MB_TYPES] = {0};
207 int count = 0; 208 int count = 0;
208 209
209 if(!r->s.mb_skip_run) 210 if(!r->s.mb_skip_run)
210 r->s.mb_skip_run = ff_rv34_get_gamma(gb); 211 r->s.mb_skip_run = svq3_get_ue_golomb(gb) + 1;
211 212
212 if(--r->s.mb_skip_run) 213 if(--r->s.mb_skip_run)
213 return RV34_MB_SKIP; 214 return RV34_MB_SKIP;
214 215
215 if(r->avail[0]) 216 if(r->avail[0])