h264_cavlc: fix reading skip run
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 30 May 2013 16:30:42 +0000 (18:30 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 30 May 2013 16:38:04 +0000 (18:38 +0200)
Fixes Ticket2606

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264_cavlc.c

index dad819f..8facf55 100644 (file)
@@ -712,7 +712,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) && (h->mb_y&1) == 0){