[FFmpeg-devel] [PATCH V2 2/2] avformat movenc extend video_track_timescale flag range to allow use of video stream timescale for track

vectronic hello.vectronic at gmail.com
Tue May 5 17:45:16 EEST 2020


indent

Signed-off-by: vectronic <hello.vectronic at gmail.com>
---
 libavformat/movenc.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index bcc0ab4377..989ba5b857 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -6461,11 +6461,11 @@ static int mov_init(AVFormatContext *s)
             } else {
                 track->timescale = st->time_base.den;
                 if (mov->video_track_timescale != -1) {
-                while(track->timescale < 10000)
-                    track->timescale *= 2;
-                if (track->timescale != st->time_base.den)
-                    av_log(s, AV_LOG_DEBUG, "Stream timescale was low (%d), the track timescale has been forced to %d.\n"
-                                            "Specify -video_track_timescale -1 to prevent this.\n", st->time_base.den, track->timescale);
+                    while(track->timescale < 10000)
+                        track->timescale *= 2;
+                    if (track->timescale != st->time_base.den)
+                        av_log(s, AV_LOG_DEBUG, "Stream timescale was low (%d), the track timescale has been forced to %d.\n"
+                                                "Specify -video_track_timescale -1 to prevent this.\n", st->time_base.den, track->timescale);
                 }
             }
             if (st->codecpar->width > 65535 || st->codecpar->height > 65535) {
-- 
2.24.2 (Apple Git-127)



More information about the ffmpeg-devel mailing list