[FFmpeg-cvslog] wrap_timestamp: remove unneeded check

Michael Niedermayer git at videolan.org
Sun Dec 16 01:16:26 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Dec 16 01:07:53 2012 +0100| [1e901ffc619459944ae7102428f48972cd899caa] | committer: Michael Niedermayer

wrap_timestamp: remove unneeded check

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1e901ffc619459944ae7102428f48972cd899caa
---

 libavformat/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 88aacd4..92207be 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -87,7 +87,7 @@ static int is_relative(int64_t ts) {
  */
 static int64_t wrap_timestamp(AVStream *st, int64_t timestamp)
 {
-    if (st->pts_wrap_behavior != AV_PTS_WRAP_IGNORE && st->pts_wrap_bits < 64 &&
+    if (st->pts_wrap_behavior != AV_PTS_WRAP_IGNORE &&
         st->pts_wrap_reference != AV_NOPTS_VALUE && timestamp != AV_NOPTS_VALUE) {
         if (st->pts_wrap_behavior == AV_PTS_WRAP_ADD_OFFSET &&
             timestamp < st->pts_wrap_reference)



More information about the ffmpeg-cvslog mailing list