Revision 187a5379 libavcodec/fraps.c

View differences:

libavcodec/fraps.c
180 180
            return -1;
181 181
        }
182 182
        /* bit 31 means same as previous pic */
183
        f->pict_type = (header & (1<<31))? FF_P_TYPE : FF_I_TYPE;
183
        f->pict_type = (header & (1U<<31))? FF_P_TYPE : FF_I_TYPE;
184 184
        f->key_frame = f->pict_type == FF_I_TYPE;
185 185

  
186 186
        if (f->pict_type == FF_I_TYPE) {
......
223 223
            return -1;
224 224
        }
225 225
        /* bit 31 means same as previous pic */
226
        f->pict_type = (header & (1<<31))? FF_P_TYPE : FF_I_TYPE;
226
        f->pict_type = (header & (1U<<31))? FF_P_TYPE : FF_I_TYPE;
227 227
        f->key_frame = f->pict_type == FF_I_TYPE;
228 228

  
229 229
        if (f->pict_type == FF_I_TYPE) {

Also available in: Unified diff