diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index a8a8f0bbed9a2a99a55819dfdbcda94d1e8b9059..2b8be339859263d49a490a38ff6eb59226e285e4 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1189,9 +1189,6 @@ static int free_context_frame(MpegEncContext *s) s->linesize = s->uvlinesize = 0; - for (i = 0; i < 3; i++) - av_freep(&s->visualization_buffer[i]); - return 0; } diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index 41850df3776f76ce62cd1f81bedb100f6a1d77f7..a5831fa3bf2c189dfa2d7e23132fa38ba81d99d5 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -343,7 +343,6 @@ typedef struct MpegEncContext { Picture *last_picture_ptr; ///< pointer to the previous picture. Picture *next_picture_ptr; ///< pointer to the next picture (for bidir pred) Picture *current_picture_ptr; ///< pointer to the current picture - uint8_t *visualization_buffer[3]; ///< temporary buffer vor MV visualization int last_dc[3]; ///< last DC values for MPEG1 int16_t *dc_val_base; int16_t *dc_val[3]; ///< used for mpeg4 DC prediction, all 3 arrays must be continuous