From fb595f470839cb25414e1c2b3f47ee371cd809ef Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Date: Sun, 16 Mar 2025 15:52:29 +0100 Subject: [PATCH 56/77] avcodec/{h261,ituh263}enc: Don't set ptr_lastgob unnecessarily It will be overwritten later in encode_thread() anyway. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/h261enc.c | 3 --- libavcodec/ituh263enc.c | 2 -- 2 files changed, 5 deletions(-) diff --git a/libavcodec/h261enc.c b/libavcodec/h261enc.c index 81711b3a16..da8736a78c 100644 --- a/libavcodec/h261enc.c +++ b/libavcodec/h261enc.c @@ -74,9 +74,6 @@ static int h261_encode_picture_header(MPVMainEncContext *const m) align_put_bits(&s->pb); - /* Update the pointer to last GOB */ - s->ptr_lastgob = put_bits_ptr(&s->pb); - put_bits(&s->pb, 20, 0x10); /* PSC */ temp_ref = s->picture_number * 30000LL * s->avctx->time_base.num / diff --git a/libavcodec/ituh263enc.c b/libavcodec/ituh263enc.c index deaf7dc5c6..5a2af09b18 100644 --- a/libavcodec/ituh263enc.c +++ b/libavcodec/ituh263enc.c @@ -249,8 +249,6 @@ static int h263_encode_picture_header(MPVMainEncContext *const m) align_put_bits(&s->pb); - /* Update the pointer to last GOB */ - s->ptr_lastgob = put_bits_ptr(&s->pb); put_bits(&s->pb, 22, 0x20); /* PSC */ temp_ref= s->picture_number * (int64_t)coded_frame_rate * s->avctx->time_base.num / //FIXME use timestamp (coded_frame_rate_base * (int64_t)s->avctx->time_base.den); -- 2.45.2