diff mbox series

[FFmpeg-devel] avcodec/mfenc: remove usage of avctx->pkt_timebase

Message ID 20210803020725.2461-1-jamrial@gmail.com
State Accepted
Commit 6b594ba5d1b5aa411a2051bb2ee901dc648c85cb
Headers show
Series [FFmpeg-devel] avcodec/mfenc: remove usage of avctx->pkt_timebase | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

James Almer Aug. 3, 2021, 2:07 a.m. UTC
The field is documented to be for decoding only.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/mfenc.c | 2 --
 1 file changed, 2 deletions(-)

Comments

James Almer Aug. 5, 2021, 5:32 p.m. UTC | #1
On 8/2/2021 11:07 PM, James Almer wrote:
> The field is documented to be for decoding only.
> 
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>   libavcodec/mfenc.c | 2 --
>   1 file changed, 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;

Will apply.
diff mbox series

Patch

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;