diff mbox series

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

Message ID 20200505144516.6458-3-hello.vectronic@gmail.com
State New
Headers show
Series avformat movenc extend video_track_timescale flag to allow use of video stream timescale for track
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

vectronic May 5, 2020, 2:45 p.m. UTC
indent

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

Patch

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) {