Revision f3356e9c libavformat/avidec.c

View differences:

libavformat/avidec.c
532 532
          st = s->streams[n];
533 533
          ast = st->priv_data;
534 534
          
535
          if(st->discard){
535
          if(   (st->discard >= AVDISCARD_DEFAULT && size==0)
536
             /*|| (st->discard >= AVDISCARD_NONKEY && !(pkt->flags & PKT_FLAG_KEY))*/ //FIXME needs a little reordering
537
             || st->discard >= AVDISCARD_ALL){
538
                if(ast->sample_size) ast->frame_offset += pkt->size;
539
                else                 ast->frame_offset++;
536 540
                url_fskip(pb, size);
537 541
                goto resync;
538 542
          }
......
554 558
            ast->packet_size= size + 8;
555 559
            ast->remaining= size;
556 560
            goto resync;
557

  
558 561
          }
559 562
        }
560 563
        /* palette changed chunk */

Also available in: Unified diff