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 20:33:03 +0000 (22:33 +0200)
Fixes Ticket2606

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

libavcodec/h264_cavlc.c

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