aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mxfenc.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-10-13 13:10:29 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-10-17 20:47:14 +0200
commitb9136c1b90031fdd96bf217d898e3dd521fccde9 (patch)
tree1e283150429b4e680bd8d5dc425fc5638e707aa2 /libavformat/mxfenc.c
parent02ea060b29769342e61711ab098a6f05778d04ad (diff)
downloadffmpeg-b9136c1b90031fdd96bf217d898e3dd521fccde9.tar.gz
lavf/mxfenc: Remove a write-only variable.
Fixes the following warning: libavformat/mxfenc.c:2125:22: warning: variable 'frame_size' set but not used
Diffstat (limited to 'libavformat/mxfenc.c')
-rw-r--r--libavformat/mxfenc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index f6acf80d36..a2f68dd4ed 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -2122,7 +2122,7 @@ static int mxf_parse_dv_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt)
MXFContext *mxf = s->priv_data;
MXFStreamContext *sc = st->priv_data;
uint8_t *vs_pack, *vsc_pack;
- int ul_index, frame_size, stype, pal;
+ int ul_index, stype, pal;
const AVDVProfile *profile;
if (mxf->header_written)
@@ -2153,7 +2153,6 @@ static int mxf_parse_dv_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt)
switch (stype) {
case 0x18: // DV100 720p
ul_index = INDEX_DV100_720_50 + pal;
- frame_size = pal ? 288000 : 240000;
if (sc->interlaced) {
av_log(s, AV_LOG_ERROR, "source marked as interlaced but codec profile is progressive\n");
sc->interlaced = 0;
@@ -2161,20 +2160,16 @@ static int mxf_parse_dv_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt)
break;
case 0x14: // DV100 1080i
ul_index = INDEX_DV100_1080_50 + pal;
- frame_size = pal ? 576000 : 480000;
break;
case 0x04: // DV50
ul_index = INDEX_DV50_525_60 + pal;
- frame_size = pal ? 288000 : 240000;
break;
default: // DV25
if (profile && profile->pix_fmt == AV_PIX_FMT_YUV420P && pal) {
ul_index = INDEX_DV25_525_60_IEC + pal;
- frame_size = pal ? 144000 : 120000;
break;
}
ul_index = INDEX_DV25_525_60 + pal;
- frame_size = pal ? 144000 : 120000;
}
sc->index = ul_index;