History

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.

Andreas Rheinhardt committed 3 years ago

Commit 66908a41 parent 90d327d1 file · +0 −6Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/h261dec.c+0−6
@@ -527,17 +527,11 @@ static int h261_decode_picture_header(H261DecContext *h) · 526 unmodified lines
527 if (format == 0) { // QCIF527 if (format == 0) { // QCIF
528 s->width = 176;528 s->width = 176;
529 s->height = 144;529 s->height = 144;
530 s->mb_width = 11;
531 s->mb_height = 9;
532 } else { // CIF530 } else { // CIF
533 s->width = 352;531 s->width = 352;
534 s->height = 288;532 s->height = 288;
535 s->mb_width = 22;
536 s->mb_height = 18;
537 }533 }
538 534
539 s->mb_num = s->mb_width * s->mb_height;
540
541 skip_bits1(&s->gb); /* still image mode off */535 skip_bits1(&s->gb); /* still image mode off */
542 skip_bits1(&s->gb); /* Reserved */536 skip_bits1(&s->gb); /* Reserved */
543 537

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t