1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavformat
Mark Reid a82a052769 avformat/mov: fix timecode with counter mode flag set
The current behaviour ends up squaring the avg_frame_rate if the conter mode flag is set.
This messes up the timecode calculation, and looks to me as a regression that
seems to have been introduced 428b4aac.

Upon further testing is seems that no special case is need for having the counter flag set.
av_timecode_init appears to handles the timecode correctly, at least in the sample files
I have.

Here is a sample mov file with the counter flag set
https://www.dropbox.com/s/5l4fucb9lhq523s/timecode_counter_mode.mov

before the patch ffmpeg will report the timecode as:
00:37:11:97 and warns that the timecode framerate is 576000000/1002001

after patch:
14:50:55:02

Signed-off-by: Anton Khirnov <anton@khirnov.net>
2021-02-22 11:12:10 +01:00
..
2021-02-09 19:37:27 +01:00
2020-10-03 21:50:59 +02:00
2021-01-23 14:32:54 +01:00
2020-10-25 23:44:26 +10:00
2020-11-09 14:58:38 +10:00
2021-01-29 19:36:46 +01:00
2021-02-02 23:53:29 +01:00
2021-02-02 23:53:29 +01:00
2020-10-06 00:01:35 +08:00
2020-10-06 00:01:27 +08:00
2021-01-23 14:32:54 +01:00
2021-02-04 17:52:45 +01:00
2020-11-11 17:05:24 +01:00
2020-12-24 15:25:00 +01:00
2021-01-23 01:05:25 +01:00
2020-10-24 19:11:12 +02:00
2020-11-04 23:30:53 +01:00
2021-01-25 09:36:47 +01:00
2020-10-07 22:16:09 +02:00
2021-02-15 00:34:01 +01:00
2021-02-20 17:43:17 +01:00
2020-09-24 13:38:28 +02:00
2020-12-21 01:27:33 -05:00
2020-10-25 09:49:26 +01:00
2020-09-18 11:30:03 +02:00
2021-02-20 17:43:17 +01:00
2020-11-22 17:45:17 +01:00
2021-02-19 07:45:48 +01:00
2021-01-28 21:08:11 +01:00
2020-10-25 09:49:31 +01:00
2021-02-10 12:28:30 +01:00
2020-09-13 16:05:01 +02:00
2021-01-16 08:51:31 +08:00
2021-02-02 23:53:29 +01:00
2021-02-20 17:43:17 +01:00
2020-12-05 00:08:33 +01:00