mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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>
This commit is contained in:
parent
90d327d607
commit
66908a43e2
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user