mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-13 19:05:37 +00:00
Revert "asfenc: return error on negative timestamp"
This reverts commit d1bec33b46, it breaks
FATE.
This commit is contained in:
parent
358628074c
commit
3cd93cc7b8
1 changed files with 0 additions and 8 deletions
|
|
@ -774,14 +774,6 @@ static int asf_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||
flags &= ~AV_PKT_FLAG_KEY;
|
||||
|
||||
pts = (pkt->pts != AV_NOPTS_VALUE) ? pkt->pts : pkt->dts;
|
||||
|
||||
if (pts < 0) {
|
||||
av_log(s, AV_LOG_ERROR,
|
||||
"Negative dts not supported stream %d, dts %"PRId64"\n",
|
||||
pkt->stream_index, pts);
|
||||
return AVERROR(ENOSYS);
|
||||
}
|
||||
|
||||
assert(pts != AV_NOPTS_VALUE);
|
||||
duration = pts * 10000;
|
||||
asf->duration = FFMAX(asf->duration, duration + pkt->duration * 10000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue