aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-06 23:49:37 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-11 22:28:24 +0200
commitc995311bcfdab5ed3e2bb5bfbbca3fac98bec70d (patch)
tree399067ed87850f4064f80a5af11476acf8a06f7a
parenta2175ca8615d09418564fcff63c85e18dd993ad1 (diff)
downloadffmpeg-c995311bcfdab5ed3e2bb5bfbbca3fac98bec70d.tar.gz
avcodec/h261dec: Don't set write-only picture_number
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/h261dec.c5
1 files changed, 1 insertions, 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 };