diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-02-06 15:27:30 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-02-06 16:12:15 -0500 |
commit | b3190529dfefe3226302b23e76e16c631cde6649 (patch) | |
tree | ab8790b89f557d6c4c34bfc7b15cfb57df162142 /libavformat/avformat.h | |
parent | a351110eea8f8684642dfe7328e14c3755915091 (diff) | |
download | ffmpeg-b3190529dfefe3226302b23e76e16c631cde6649.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>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 83289e4604..fd0cdba6dc 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1265,7 +1265,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 |