]> git.sesse.net Git - ffmpeg/commitdiff
avcodec: use av_timecode_make_smpte_tc_string2 in hevc and h264 decoder
authorMarton Balint <cus@passwd.hu>
Fri, 24 Jul 2020 14:26:04 +0000 (16:26 +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>
libavcodec/h264_slice.c
libavcodec/hevcdec.c

index c7b2764270599857a4d022825cb03b5195cc29b1..cfc29e186cced67ad0bda00b14bda88cd645ca8a 100644 (file)
@@ -1325,7 +1325,7 @@ static int h264_export_frame_props(H264Context *h)
             int   ff = h->sei.picture_timing.timecode[i].frame;
 
             tc_sd[i + 1] = av_timecode_get_smpte(h->avctx->framerate, drop, hh, mm, ss, ff);
-            av_timecode_make_smpte_tc_string(tcbuf, tc_sd[i + 1], 0);
+            av_timecode_make_smpte_tc_string2(tcbuf, h->avctx->framerate, tc_sd[i + 1], 0, 0);
             av_dict_set(&out->metadata, "timecode", tcbuf, 0);
         }
         h->sei.picture_timing.timecode_cnt = 0;
index b77df8d89f6c494796ad1a9a5528c8e2b5093074..c1de75abe17eb5a5b9f63802ba9da337ea8433c1 100644 (file)
@@ -2843,7 +2843,7 @@ static int set_side_data(HEVCContext *s)
             int   ff = s->sei.timecode.n_frames[i];
 
             tc_sd[i + 1] = av_timecode_get_smpte(s->avctx->framerate, drop, hh, mm, ss, ff);
-            av_timecode_make_smpte_tc_string(tcbuf, tc_sd[i + 1], 0);
+            av_timecode_make_smpte_tc_string2(tcbuf, s->avctx->framerate, tc_sd[i + 1], 0, 0);
             av_dict_set(&out->metadata, "timecode", tcbuf, 0);
         }