This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit f5689615057df007e277622e185076ea25049fe3
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu Sep 17 18:41:48 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sat Sep 19 18:47:12 2026 +0000

    avcodec/mpegvideo_enc: compute the frame distances only for MPEG-4
    
    time, last_non_b_time, pp_time and pb_time are the MPEG-4 time
    bookkeeping; the only other reader was the B frame motion estimation
    of the MPEG-1/2 encoders, which now scales with the timestamps.
---
 libavcodec/mpegvideo_enc.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index f52e3617d7..6ce342dde8 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -3691,12 +3691,10 @@ static int encode_picture(MPVMainEncContext *const m, 
const AVPacket *pkt)
     int bits;
     int context_count = s->c.slice_context_count;
 
-    /* we need to initialize some time vars before we can encode B-frames */
-    // RAL: Condition added for MPEG1VIDEO
-    if (s->c.out_format == FMT_MPEG1 || (s->c.h263_pred && 
s->c.msmpeg4_version == MSMP4_UNUSED))
+    if (CONFIG_MPEG4_ENCODER && s->c.codec_id == AV_CODEC_ID_MPEG4) {
         set_frame_distances(s);
-    if (CONFIG_MPEG4_ENCODER && s->c.codec_id == AV_CODEC_ID_MPEG4)
         ff_set_mpeg4_time(s);
+    }
 
 //    s->lambda = s->c.cur_pic.ptr->quality; //FIXME qscale / ... stuff for ME 
rate distortion
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to