summaryrefslogtreecommitdiff
path: root/libavformat/avisynth.c
diff options
context:
space:
mode:
authorStephen Hutchinson <qyot27@gmail.com>2013-04-10 15:29:27 -0400
committerMichael Niedermayer <michaelni@gmx.at>2013-04-11 16:32:14 +0200
commitff99b42e045a0b40bf81e4e38e6ef86f4db32006 (patch)
treed0612c3a1c892b30dd32469162bc04b26d3b2870 /libavformat/avisynth.c
parentd1853436876d26e462227bc02a1c527fc82772b7 (diff)
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: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avisynth.c')
-rw-r--r--libavformat/avisynth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index 775a5f2b61..a5a4fcc6c9 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -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;