History

avcodec/mpegvideo_enc: Remove dead block

None of the mpegvideo encoders support anything but coded frames; and if this were to change, it is unclear whether they would need the adjustment here. So remove it.

Andreas Rheinhardt committed 3 years ago

Commit d87c3581 parent 070bc4d1 file · +0 −13Browse files

Unified · Split

libavcodec/mpegvideo_enc.c+0−13
@@ -1725,19 +1725,6 @@ static int frame_start(MpegEncContext *s) · 1724 unmodified lines
17251725 return ret;
17261726 }
17271727
1728− if (s->picture_structure!= PICT_FRAME) {
1729− int i;
1730− for (i = 0; i < 4; i++) {
1731− if (s->picture_structure == PICT_BOTTOM_FIELD) {
1732− s->current_picture.f->data[i] +=
1733− s->current_picture.f->linesize[i];
1734− }
1735− s->current_picture.f->linesize[i] *= 2;
1736− s->last_picture.f->linesize[i] *= 2;
1737− s->next_picture.f->linesize[i] *= 2;
1738− }
1739− }
1740−
17411728 if (s->dct_error_sum) {
17421729 av_assert2(s->noise_reduction && s->encoding);
17431730 update_noise_reduction(s);

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