diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c
index dbbe2d9e09f2378144051859db688847b12ac92e..a2c8a1ad916f6dedd592102b6570736d4f36736d 100644
--- a/libavcodec/cavsdec.c
+++ b/libavcodec/cavsdec.c
@@ -469,7 +469,7 @@ static int decode_pic(AVSContext *h) {
     } else {
         h->pic_type = FF_I_TYPE;
         if(get_bits1(&s->gb))
-            skip_bits(&s->gb,16);//time_code
+            skip_bits(&s->gb,24);//time_code
     }
     /* release last B frame */
     if(h->picture.data[0])