diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-06 23:40:19 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-14 23:36:46 +0200 |
commit | 66908a43e2fd171178e4bcdf80596545f443e815 (patch) | |
tree | 0da233b54e284fa7f029dcfead87f5a114be30ce | |
parent | 90d327d607ec89453d96cf34a788e36d520782a5 (diff) | |
download | ffmpeg-66908a43e2fd171178e4bcdf80596545f443e815.tar.gz |
avcodec/h261dec: Don't set write-only macroblock dimensions
They are generally set in ff_mpv_init_context_frame()
(mostly called by ff_mpv_common_init()); setting them
somewhere else should be avoided.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/h261dec.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c index e227c1785e..8a823793e5 100644 --- a/libavcodec/h261dec.c +++ b/libavcodec/h261dec.c @@ -527,17 +527,11 @@ static int h261_decode_picture_header(H261DecContext *h) if (format == 0) { // QCIF s->width = 176; s->height = 144; - s->mb_width = 11; - s->mb_height = 9; } else { // CIF s->width = 352; s->height = 288; - s->mb_width = 22; - s->mb_height = 18; } - s->mb_num = s->mb_width * s->mb_height; - skip_bits1(&s->gb); /* still image mode off */ skip_bits1(&s->gb); /* Reserved */ |