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.
Unified · Split
| @@ -1725,19 +1725,6 @@ static int frame_start(MpegEncContext *s) · 1724 unmodified lines | |||
| 1725 | return ret; | 1725 | return ret; |
| 1726 | } | 1726 | } |
| 1727 | 1727 | ||
| 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 | |||
| 1741 | if (s->dct_error_sum) { | 1728 | if (s->dct_error_sum) { |
| 1742 | av_assert2(s->noise_reduction && s->encoding); | 1729 | av_assert2(s->noise_reduction && s->encoding); |
| 1743 | update_noise_reduction(s); | 1730 | update_noise_reduction(s); |