Revision 654b65d0

View differences:

libavformat/matroskaenc.c
866 866
    int ret;
867 867
    int64_t ts = mkv->tracks[pkt->stream_index].write_dts ? pkt->dts : pkt->pts;
868 868

  
869
    if (ts == AV_NOPTS_VALUE) {
870
        av_log(s, AV_LOG_ERROR, "Can't write packet with unknown timestamp\n");
871
        return AVERROR(EINVAL);
872
    }
873

  
869 874
    if (url_is_streamed(s->pb)) {
870 875
        if (!mkv->dyn_bc)
871 876
            url_open_dyn_buf(&mkv->dyn_bc);

Also available in: Unified diff