Revision 755bfeab libavcodec/h261dec.c

View differences:

libavcodec/h261dec.c
532 532
 */
533 533
static int get_consumed_bytes(MpegEncContext *s, int buf_size){
534 534
    int pos= get_bits_count(&s->gb)>>3;
535
    if(pos==0) pos=1; //avoid infinite loops (i doubt thats needed but ...)
535
    if(pos==0) pos=1; //avoid infinite loops (i doubt that is needed but ...)
536 536
    if(pos+10>buf_size) pos=buf_size; // oops ;)
537 537

  
538 538
    return pos;
......
565 565
            return -1;
566 566
    }
567 567

  
568
    //we need to set current_picture_ptr before reading the header, otherwise we cant store anyting im there
568
    //we need to set current_picture_ptr before reading the header, otherwise we cannot store anyting im there
569 569
    if(s->current_picture_ptr==NULL || s->current_picture_ptr->data[0]){
570 570
        int i= ff_find_unused_picture(s, 0);
571 571
        s->current_picture_ptr= &s->picture[i];
......
580 580
    }
581 581

  
582 582
    if (s->width != avctx->coded_width || s->height != avctx->coded_height){
583
        ParseContext pc= s->parse_context; //FIXME move these demuxng hack to avformat
583
        ParseContext pc= s->parse_context; //FIXME move this demuxing hack to libavformat
584 584
        s->parse_context.buffer=0;
585 585
        MPV_common_end(s);
586 586
        s->parse_context= pc;

Also available in: Unified diff