aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-02-06 15:27:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-02-09 03:31:17 +0100
commit2f35beae4d0994dda925d6b4de68411fbeb55100 (patch)
tree44fe14c49949b56617eea310f010bb634449dd52 /libavformat/avformat.h
parente11afd71a37316e2ea4e765dcb7a6a72867d9bc8 (diff)
downloadffmpeg-2f35beae4d0994dda925d6b4de68411fbeb55100.tar.gz
Make av_set_pts_info keep previous time base if new one is invalid.
Fixes issue 2475. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit b3190529dfefe3226302b23e76e16c631cde6649)
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 6215ca59ee..e1b753e3f4 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1267,7 +1267,8 @@ AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base,
int64_t start, int64_t end, const char *title);
/**
- * Set the pts for a given stream.
+ * Set the pts for a given stream. If the new values would be invalid
+ * (<= 0), it leaves the AVStream unchanged.
*
* @param s stream
* @param pts_wrap_bits number of bits effectively used by the pts