Commit 8346a4b9 authored by Julian Rother's avatar Julian Rother

transcode: Fixed pkt timestamps

parent ea285e37
......@@ -187,7 +187,7 @@ static void flush_encoder(AVFormatContext *mux, AVFilterContext *sink, AVCodecCo
while (!avcodec_receive_packet(enc, &pkt))
{
pkt.stream_index = idx;
av_packet_rescale_ts(&pkt, sink->inputs[0]->time_base,
av_packet_rescale_ts(&pkt, enc->time_base,
mux->streams[idx]->time_base);
if (err = av_interleaved_write_frame(mux, &pkt))
job_failed("Could not write frame: %s", av_err2str(err));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment