summaryrefslogtreecommitdiff
path: root/libavcodec/mfenc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-08-02 23:07:25 -0300
committerJames Almer <jamrial@gmail.com>2021-08-06 09:38:35 -0300
commit6b594ba5d1b5aa411a2051bb2ee901dc648c85cb (patch)
tree139a9a8f3b223e7c0f7635c9f40f9fa378a1d8d8 /libavcodec/mfenc.c
parentef54590f83880ae982f3dd29be7f1f4105f98a85 (diff)
avcodec/mfenc: remove usage of avctx->pkt_timebase
The field is documented to be for decoding only. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/mfenc.c')
-rw-r--r--libavcodec/mfenc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/mfenc.c b/libavcodec/mfenc.c
index 26f1c8057f..410ad64d8d 100644
--- a/libavcodec/mfenc.c
+++ b/libavcodec/mfenc.c
@@ -100,8 +100,6 @@ static int mf_wait_events(AVCodecContext *avctx)
static AVRational mf_get_tb(AVCodecContext *avctx)
{
- if (avctx->pkt_timebase.num > 0 && avctx->pkt_timebase.den > 0)
- return avctx->pkt_timebase;
if (avctx->time_base.num > 0 && avctx->time_base.den > 0)
return avctx->time_base;
return MF_TIMEBASE;