Commit 0c994268 authored by conrad's avatar conrad

mkvenc: Don't try to write packets with unknown timestamps

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22371 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0c16cf34
......@@ -866,6 +866,11 @@ static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt)
int ret;
int64_t ts = mkv->tracks[pkt->stream_index].write_dts ? pkt->dts : pkt->pts;
if (ts == AV_NOPTS_VALUE) {
av_log(s, AV_LOG_ERROR, "Can't write packet with unknown timestamp\n");
return AVERROR(EINVAL);
}
if (url_is_streamed(s->pb)) {
if (!mkv->dyn_bc)
url_open_dyn_buf(&mkv->dyn_bc);
......
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