aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/decode.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-01-04 13:13:19 -0300
committerAnton Khirnov <anton@khirnov.net>2023-02-09 15:35:08 +0100
commit5f9e848e686a3c0795939809712b260af5c1adb8 (patch)
treec8fd93e026f80dbba898f9d7ac5b84d505c564b6 /libavcodec/decode.c
parent10c9a0874cb361336237557391d306d26d43f137 (diff)
downloadffmpeg-5f9e848e686a3c0795939809712b260af5c1adb8.tar.gz
avcodec: remove FF_API_AVCTX_TIMEBASE
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/decode.c')
-rw-r--r--libavcodec/decode.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 34e67a649b..aba20859df 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -434,11 +434,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
#endif
ret = pkt->size;
-#if FF_API_AVCTX_TIMEBASE
- if (avctx->framerate.num > 0 && avctx->framerate.den > 0)
- avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1}));
-#endif
-
/* do not stop draining when actual_got_frame != 0 or ret < 0 */
/* got_frame == 0 but actual_got_frame != 0 when frame is discarded */
if (avci->draining && !actual_got_frame) {