comparison msmpeg4.c @ 9455:6cb61c6220c3 libavcodec

Get rid of an unused variable, found by the clang static analyzer.
author michael
date Fri, 17 Apr 2009 12:41:37 +0000
parents bb9f74aa37ee
children 3141f69e3905
comparison
equal deleted inserted replaced
9454:7db61b0d21f9 9455:6cb61c6220c3
1178 return -1; 1178 return -1;
1179 } 1179 }
1180 #endif 1180 #endif
1181 1181
1182 if(s->msmpeg4_version==1){ 1182 if(s->msmpeg4_version==1){
1183 int start_code, num; 1183 int start_code;
1184 start_code = (get_bits(&s->gb, 16)<<16) | get_bits(&s->gb, 16); 1184 start_code = (get_bits(&s->gb, 16)<<16) | get_bits(&s->gb, 16);
1185 if(start_code!=0x00000100){ 1185 if(start_code!=0x00000100){
1186 av_log(s->avctx, AV_LOG_ERROR, "invalid startcode\n"); 1186 av_log(s->avctx, AV_LOG_ERROR, "invalid startcode\n");
1187 return -1; 1187 return -1;
1188 } 1188 }
1189 1189
1190 num= get_bits(&s->gb, 5); // frame number */ 1190 skip_bits(&s->gb, 5); // frame number */
1191 } 1191 }
1192 1192
1193 s->pict_type = get_bits(&s->gb, 2) + 1; 1193 s->pict_type = get_bits(&s->gb, 2) + 1;
1194 if (s->pict_type != FF_I_TYPE && 1194 if (s->pict_type != FF_I_TYPE &&
1195 s->pict_type != FF_P_TYPE){ 1195 s->pict_type != FF_P_TYPE){