[FFmpeg-cvslog] avcodec/mpegvideo_enc: Remove redundant cast

Andreas Rheinhardt git at videolan.org
Fri Aug 12 04:23:57 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Aug  9 18:49:01 2022 +0200| [300e31457a42a4b618b6cecab65acbcc5632cb16] | committer: Andreas Rheinhardt

avcodec/mpegvideo_enc: Remove redundant cast

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=300e31457a42a4b618b6cecab65acbcc5632cb16
---

 libavcodec/mpegvideo_enc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 4840d80fe8..63fa0663d3 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -1154,7 +1154,7 @@ static int load_input_picture(MpegEncContext *s, const AVFrame *pic_arg)
     for (i = flush_offset; i < MAX_PICTURE_COUNT /*s->encoding_delay + 1*/; i++)
         s->input_picture[i - flush_offset] = s->input_picture[i];
 
-    s->input_picture[encoding_delay] = (Picture*) pic;
+    s->input_picture[encoding_delay] = pic;
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list