h264_cavlc: fix reading skip run
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 30 May 2013 16:30:42 +0000 (18:30 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 30 May 2013 21:24:19 +0000 (23:24 +0200)
Fixes Ticket2606

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 826b3a75cd295c03720e00d3de83e1abcbedd4b9)

Conflicts:
libavcodec/h264_cavlc.c

libavcodec/h264_cavlc.c

index 7cf1b4d..96c421b 100644 (file)
@@ -708,7 +708,7 @@ int ff_h264_decode_mb_cavlc(H264Context *h){
                 down the code */
     if(h->slice_type_nos != AV_PICTURE_TYPE_I){
         if(s->mb_skip_run==-1)
-            s->mb_skip_run= get_ue_golomb(&s->gb);
+            s->mb_skip_run= get_ue_golomb_long(&s->gb);
 
         if (s->mb_skip_run--) {
             if(FRAME_MBAFF && (s->mb_y&1) == 0){