]> git.sesse.net Git - ffmpeg/commitdiff
fftools/ffprobe: use av_timecode_make_smpte_tc_string2
authorMarton Balint <cus@passwd.hu>
Fri, 24 Jul 2020 14:25:45 +0000 (16:25 +0200)
committerMarton Balint <cus@passwd.hu>
Sun, 13 Sep 2020 15:51:57 +0000 (17:51 +0200)
Signed-off-by: Marton Balint <cus@passwd.hu>
fftools/ffprobe.c

index d4e494f11f4850e077d6fc632cce909542348649..86bd23d36d51ad6fb4f4b32095d958b3a584497f 100644 (file)
@@ -2225,7 +2225,7 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
                 writer_print_section_header(w, SECTION_ID_FRAME_SIDE_DATA_TIMECODE_LIST);
                 for (int j = 1; j <= m ; j++) {
                     char tcbuf[AV_TIMECODE_STR_SIZE];
-                    av_timecode_make_smpte_tc_string(tcbuf, tc[j], 0);
+                    av_timecode_make_smpte_tc_string2(tcbuf, stream->avg_frame_rate, tc[j], 0, 0);
                     writer_print_section_header(w, SECTION_ID_FRAME_SIDE_DATA_TIMECODE);
                     print_str("value", tcbuf);
                     writer_print_section_footer(w);