ffmpeg | branch: master | Andreas Rheinhardt <[email protected]> |
Sun Mar 16 15:52:29 2025 +0100| [363fe861157ddbbe600e32f8b5fdb29707291638] |
committer: Andreas Rheinhardt
avcodec/{h261,ituh263}enc: Don't set ptr_lastgob unnecessarily
It will be overwritten later in encode_thread() anyway.
Signed-off-by: Andreas Rheinhardt <[email protected]>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=363fe861157ddbbe600e32f8b5fdb29707291638
---
libavcodec/h261enc.c | 3 ---
libavcodec/ituh263enc.c | 2 --
2 files changed, 5 deletions(-)
diff --git a/libavcodec/h261enc.c b/libavcodec/h261enc.c
index aa4d44df0f..e051575e4f 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);
_______________________________________________
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".