comparison rmdec.c @ 2532:5faceca0b5d6 libavformat

Set correct length for last slice in frame subpacket
author kostya
date Thu, 06 Sep 2007 03:36:38 +0000
parents 8f90908f3c31
children ecd8a9aa182d
comparison
equal deleted inserted replaced
2531:d126dc8b628c 2532:5faceca0b5d6
508 pic_num= get_byte(pb); len--; 508 pic_num= get_byte(pb); len--;
509 rm->remaining_len= len; 509 rm->remaining_len= len;
510 rm->current_stream= st->id; 510 rm->current_stream= st->id;
511 511
512 // av_log(NULL, AV_LOG_DEBUG, "%X len:%d pos:%d len2:%d pic_num:%d\n",h, len, pos, len2, pic_num); 512 // av_log(NULL, AV_LOG_DEBUG, "%X len:%d pos:%d len2:%d pic_num:%d\n",h, len, pos, len2, pic_num);
513 if((h & 0xc0) == 0x80)
514 len=pos;
513 if(len2 && len2<len) 515 if(len2 && len2<len)
514 len=len2; 516 len=len2;
515 rm->remaining_len-= len; 517 rm->remaining_len-= len;
516 av_get_packet(pb, pkt, len); 518 av_get_packet(pb, pkt, len);
517 519