[FFmpeg-cvslog] avcodec/mediacodecdec_common: remove unused field from MediaCodecDecContext

Matthieu Bouron git at videolan.org
Sat Mar 3 23:06:36 EET 2018


ffmpeg | branch: master | Matthieu Bouron <matthieu.bouron at gmail.com> | Tue Feb 20 11:08:01 2018 +0100| [cc9875dc29383dd2c82dee3736e0cf53008a865e] | committer: Matthieu Bouron

avcodec/mediacodecdec_common: remove unused field from MediaCodecDecContext

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

 libavcodec/mediacodecdec_common.c | 2 +-
 libavcodec/mediacodecdec_common.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/mediacodecdec_common.c b/libavcodec/mediacodecdec_common.c
index 195cc70ba7..929db78361 100644
--- a/libavcodec/mediacodecdec_common.c
+++ b/libavcodec/mediacodecdec_common.c
@@ -386,7 +386,7 @@ static int mediacodec_dec_parse_format(AVCodecContext *avctx, MediaCodecDecConte
     }
 
     AMEDIAFORMAT_GET_INT32(s->color_format, "color-format", 1);
-    s->pix_fmt = avctx->pix_fmt = mcdec_map_color_format(avctx, s, s->color_format);
+    avctx->pix_fmt = mcdec_map_color_format(avctx, s, s->color_format);
     if (avctx->pix_fmt == AV_PIX_FMT_NONE) {
         av_log(avctx, AV_LOG_ERROR, "Output color format is not supported\n");
         ret = AVERROR(EINVAL);
diff --git a/libavcodec/mediacodecdec_common.h b/libavcodec/mediacodecdec_common.h
index 32d16d3e3a..85df507ffb 100644
--- a/libavcodec/mediacodecdec_common.h
+++ b/libavcodec/mediacodecdec_common.h
@@ -55,7 +55,6 @@ typedef struct MediaCodecDecContext {
     int stride;
     int slice_height;
     int color_format;
-    enum AVPixelFormat pix_fmt;
     int crop_top;
     int crop_bottom;
     int crop_left;



More information about the ffmpeg-cvslog mailing list