ffmpeg | branch: master | Anton Khirnov <[email protected]> | Fri Nov 25 
21:31:09 2022 +0100| [d60d6d819d49740eeba51d8b60e34d9340eeeaf6] | committer: 
Anton Khirnov

fftools/ffmpeg: drop an always-false check

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d60d6d819d49740eeba51d8b60e34d9340eeeaf6
---

 fftools/ffmpeg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 8f27b5ca3f..0128476f57 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -678,7 +678,7 @@ static double adjust_frame_pts_to_encoder_tb(OutputFile 
*of, OutputStream *ost,
     double float_pts = AV_NOPTS_VALUE; // this is identical to frame.pts but 
with higher precision
     AVCodecContext *enc = ost->enc_ctx;
     AVRational filter_tb = (AVRational){ -1, -1 };
-    if (frame->pts == AV_NOPTS_VALUE || !enc)
+    if (frame->pts == AV_NOPTS_VALUE)
         goto early_exit;
 
     {

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to