[FFmpeg-cvslog] avcodec/h261dec: Don't set write-only picture_number

Andreas Rheinhardt git at videolan.org
Wed Oct 11 23:37:55 EEST 2023


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Oct  6 23:49:37 2023 +0200| [c995311bcfdab5ed3e2bb5bfbbca3fac98bec70d] | committer: Andreas Rheinhardt

avcodec/h261dec: Don't set write-only picture_number

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavcodec/h261dec.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c
index 35137b9296..2024bf6b19 100644
--- a/libavcodec/h261dec.c
+++ b/libavcodec/h261dec.c
@@ -512,10 +512,7 @@ static int h261_decode_picture_header(H261DecContext *h)
     }
 
     /* temporal reference */
-    i = get_bits(&s->gb, 5); /* picture timestamp */
-    if (i < (s->picture_number & 31))
-        i += 32;
-    s->picture_number = (s->picture_number & ~31) + i;
+    skip_bits(&s->gb, 5); /* picture timestamp */
 
     s->avctx->framerate = (AVRational) { 30000, 1001 };
 



More information about the ffmpeg-cvslog mailing list