提交 ff99b42e 编写于 作者: S Stephen Hutchinson 提交者: Michael Niedermayer

avformat/avisynth: Don't insert null frames or samples at the start of a stream.

This is the last remaining issue from ticket #2412
Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 d1853436
......@@ -420,8 +420,8 @@ static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt, int dis
if (discard)
return 0;
pkt->pts = avs->curr_frame;
pkt->dts = avs->curr_frame;
pkt->pts = n;
pkt->dts = n;
pkt->duration = 1;
// Define the bpp values for the new AviSynth 2.6 colorspaces
......@@ -516,8 +516,8 @@ static int avisynth_read_packet_audio(AVFormatContext *s, AVPacket *pkt, int dis
if (discard)
return 0;
pkt->pts = avs->curr_sample;
pkt->dts = avs->curr_sample;
pkt->pts = n;
pkt->dts = n;
pkt->duration = samples;
pkt->size = avs_bytes_per_channel_sample(avs->vi) * samples * avs->vi->nchannels;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册