Ticket #6753: ticket_6753_fix_dvb_subtitle_delay.diff

File ticket_6753_fix_dvb_subtitle_delay.diff, 749 bytes (added by janne, 2 years ago)
  • libs/libavformat/mpegts.c

     
    17941794                pes->data_index += buf_size; 
    17951795            } 
    17961796            buf_size = 0; 
     1797            /* emit complete packets 
     1798             * total_size is the number of bytes following pes_packet_length 
     1799             * in the pes header, i.e. not counting the first 6 bytes */ 
     1800            if (pes->pes_header_size + pes->data_index >= pes->total_size + 6) { 
     1801                ts->stop_parse = 1; 
     1802                new_pes_packet(pes, ts->pkt); 
     1803            } 
    17971804            break; 
    17981805        case MPEGTS_SKIP: 
    17991806            buf_size = 0;