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
527527 if (format == 0) { // QCIF
528528 s->width = 176;
529529 s->height = 144;
530− s->mb_width = 11;
531− s->mb_height = 9;
532530 } else { // CIF
533531 s->width = 352;
534532 s->height = 288;
535− s->mb_width = 22;
536− s->mb_height = 18;
537533 }
538534
539− s->mb_num = s->mb_width * s->mb_height;
540−
541535 skip_bits1(&s->gb); /* still image mode off */
542536 skip_bits1(&s->gb); /* Reserved */
543537

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