Ticket #428: patchavisynthpts.diff

File patchavisynthpts.diff, 467 bytes (added by chinshou, 5 years ago)
  • libavformat/avisynth.c

    diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
    index e41e1c0..84a956c 100644
    a b static int avisynth_read_packet(AVFormatContext *s, AVPacket *pkt) 
    165165 
    166166  res = AVIStreamRead(stream->handle, stream->read, stream->chunck_samples, pkt->data, stream->chunck_size, &read_size, NULL); 
    167167 
    168   pkt->pts = stream->read; 
    169168  pkt->size = read_size; 
    170169 
    171170  stream->read += stream->chunck_samples;