projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3586280
)
Revert "asfenc: return error on negative timestamp"
author
Anton Khirnov
<anton@khirnov.net>
Tue, 19 Mar 2013 10:04:55 +0000
(11:04 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Tue, 19 Mar 2013 10:04:55 +0000
(11:04 +0100)
This reverts commit
d1bec33b46091546c5b2e6815210e73f87abf413
, it breaks
FATE.
libavformat/asfenc.c
patch
|
blob
|
history
diff --git
a/libavformat/asfenc.c
b/libavformat/asfenc.c
index 6112d3f2e0cf120feab6b633a96dfe3f25390543..a523b3a0515ca161928ef2a0fa9fbe44ada5a7d0 100644
(file)
--- 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);