[FFmpeg-devel] [PATCH v1] fftools/ffmpeg_enc: NULL check for frame pointer removed

Dawid Kozinski d.kozinski at samsung.com
Fri Oct 6 15:05:40 EEST 2023


Signed-off-by: Dawid Kozinski <d.kozinski at samsung.com>
---
 fftools/ffmpeg_enc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c
index ec9cebbd96..61fd31823e 100644
--- a/fftools/ffmpeg_enc.c
+++ b/fftools/ffmpeg_enc.c
@@ -951,8 +951,8 @@ early_exit:
 
     if (debug_ts) {
         av_log(NULL, AV_LOG_INFO, "filter -> pts:%s pts_time:%s exact:%f time_base:%d/%d\n",
-               frame ? av_ts2str(frame->pts) : "NULL",
-               (enc && frame) ? av_ts2timestr(frame->pts, &enc->time_base) : "NULL",
+               av_ts2str(frame->pts),
+               (enc) ? av_ts2timestr(frame->pts, &enc->time_base) : "NULL",
                float_pts,
                enc ? enc->time_base.num : -1,
                enc ? enc->time_base.den : -1);
-- 
2.25.1



More information about the ffmpeg-devel mailing list