aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mxfdec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-05-01 23:28:18 -0300
committerJames Almer <jamrial@gmail.com>2021-05-07 09:27:21 -0300
commitb9c5fdf6027010d15ee90a43aa023e45a5189097 (patch)
treed51cea73b330856ca9245aed2e1cb0c23a58bc46 /libavformat/mxfdec.c
parentfab2ed47042d4cc2a4cd69bb97738024c01300c7 (diff)
downloadffmpeg-b9c5fdf6027010d15ee90a43aa023e45a5189097.tar.gz
avformat: move AVStream.{parser,need_parsing} to AVStreamInternal
Those are private fields, no reason to have them exposed in a public header. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/mxfdec.c')
-rw-r--r--libavformat/mxfdec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index f0c2c0b15f..3bf480a3a6 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -2593,7 +2593,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
}
}
}
- st->need_parsing = AVSTREAM_PARSE_HEADERS;
+ st->internal->need_parsing = AVSTREAM_PARSE_HEADERS;
if (material_track->sequence->origin) {
av_dict_set_int(&st->metadata, "material_track_origin", material_track->sequence->origin, 0);
}
@@ -2658,7 +2658,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
else if (descriptor->bits_per_sample == 32)
st->codecpar->codec_id = AV_CODEC_ID_PCM_S32BE;
} else if (st->codecpar->codec_id == AV_CODEC_ID_MP2) {
- st->need_parsing = AVSTREAM_PARSE_FULL;
+ st->internal->need_parsing = AVSTREAM_PARSE_FULL;
}
st->codecpar->bits_per_coded_sample = av_get_bits_per_sample(st->codecpar->codec_id);
} else if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA) {
@@ -2692,7 +2692,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
}
if (st->codecpar->codec_type != AVMEDIA_TYPE_DATA && source_track->wrapping != FrameWrapped) {
/* TODO: decode timestamps */
- st->need_parsing = AVSTREAM_PARSE_TIMESTAMPS;
+ st->internal->need_parsing = AVSTREAM_PARSE_TIMESTAMPS;
}
}
@@ -3660,7 +3660,7 @@ static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt)
if (next_ofs <= 0) {
// If we have no way to packetize the data, then return it in chunks...
if (klv.next_klv - klv.length == pos && max_data_size > MXF_MAX_CHUNK_SIZE) {
- st->need_parsing = AVSTREAM_PARSE_FULL;
+ st->internal->need_parsing = AVSTREAM_PARSE_FULL;
avpriv_request_sample(s, "Huge KLV without proper index in non-frame wrapped essence");
}
size = FFMIN(max_data_size, MXF_MAX_CHUNK_SIZE);