Revision 755bfeab libavcodec/h263dec.c

View differences:

libavcodec/h263dec.c
141 141
        if(pos<0) pos=0; // padding is not really read so this might be -1
142 142
        return pos;
143 143
    }else{
144
        if(pos==0) pos=1; //avoid infinite loops (i doubt thats needed but ...)
144
        if(pos==0) pos=1; //avoid infinite loops (i doubt that is needed but ...)
145 145
        if(pos+10>buf_size) pos=buf_size; // oops ;)
146 146

  
147 147
        return pos;
......
382 382
            return -1;
383 383
    }
384 384

  
385
    //we need to set current_picture_ptr before reading the header, otherwise we cant store anyting im there
385
    /* We need to set current_picture_ptr before reading the header,
386
     * otherwise we cannot store anyting in there */
386 387
    if(s->current_picture_ptr==NULL || s->current_picture_ptr->data[0]){
387 388
        int i= ff_find_unused_picture(s, 0);
388 389
        s->current_picture_ptr= &s->picture[i];
......
621 622
    ff_er_frame_start(s);
622 623

  
623 624
    //the second part of the wmv2 header contains the MB skip bits which are stored in current_picture->mb_type
624
    //which isnt available before MPV_frame_start()
625
    //which is not available before MPV_frame_start()
625 626
    if (s->msmpeg4_version==5){
626 627
        if(!ENABLE_WMV2_DECODER || ff_wmv2_decode_secondary_picture_header(s) < 0)
627 628
            return -1;

Also available in: Unified diff