diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-05 17:16:24 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-10 00:21:46 +0200 |
commit | d87c358ee6382bb72520c09fcefda95021bbdd61 (patch) | |
tree | 3fc69d1318abe7bdf81b821e82c836893a3579ca /libavcodec | |
parent | 070bc4d2c570ea823cc4586721720504d201b114 (diff) | |
download | ffmpeg-d87c358ee6382bb72520c09fcefda95021bbdd61.tar.gz |
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.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index b07e111491..daf8b4992c 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -1725,19 +1725,6 @@ static int frame_start(MpegEncContext *s) return ret; } - if (s->picture_structure!= PICT_FRAME) { - int i; - for (i = 0; i < 4; i++) { - if (s->picture_structure == PICT_BOTTOM_FIELD) { - s->current_picture.f->data[i] += - s->current_picture.f->linesize[i]; - } - s->current_picture.f->linesize[i] *= 2; - s->last_picture.f->linesize[i] *= 2; - s->next_picture.f->linesize[i] *= 2; - } - } - if (s->dct_error_sum) { av_assert2(s->noise_reduction && s->encoding); update_noise_reduction(s); |