[FFmpeg-cvslog] Revert "asfenc: return error on negative timestamp"
Anton Khirnov
git at videolan.org
Wed Mar 20 11:30:08 CET 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Mar 19 11:04:55 2013 +0100| [3cd93cc7b898f83cc0c7ae35804dbe2cb6586af2] | committer: Anton Khirnov
Revert "asfenc: return error on negative timestamp"
This reverts commit d1bec33b46091546c5b2e6815210e73f87abf413, it breaks
FATE.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3cd93cc7b898f83cc0c7ae35804dbe2cb6586af2
---
libavformat/asfenc.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index 6112d3f..a523b3a 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list