summaryrefslogtreecommitdiff
path: root/libavformat/wavdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/wavdec.c')
-rw-r--r--libavformat/wavdec.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index 815d189671..7a7e765353 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -166,8 +166,9 @@ static int wav_probe(const AVProbeData *p)
static void handle_stream_probing(AVStream *st)
{
if (st->codecpar->codec_id == AV_CODEC_ID_PCM_S16LE) {
- st->internal->request_probe = AVPROBE_SCORE_EXTENSION;
- st->internal->probe_packets = FFMIN(st->internal->probe_packets, 32);
+ FFStream *const sti = ffstream(st);
+ sti->request_probe = AVPROBE_SCORE_EXTENSION;
+ sti->probe_packets = FFMIN(sti->probe_packets, 32);
}
}
@@ -183,7 +184,7 @@ static int wav_parse_fmt_tag(AVFormatContext *s, int64_t size, AVStream *st)
return ret;
handle_stream_probing(st);
- st->internal->need_parsing = AVSTREAM_PARSE_FULL_RAW;
+ ffstream(st)->need_parsing = AVSTREAM_PARSE_FULL_RAW;
avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
@@ -200,7 +201,7 @@ static int wav_parse_xma2_tag(AVFormatContext *s, int64_t size, AVStream *st)
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->codec_id = AV_CODEC_ID_XMA2;
- st->internal->need_parsing = AVSTREAM_PARSE_FULL_RAW;
+ ffstream(st)->need_parsing = AVSTREAM_PARSE_FULL_RAW;
version = avio_r8(pb);
if (version != 3 && version != 4)
@@ -702,8 +703,8 @@ static int wav_read_packet(AVFormatContext *s, AVPacket *pkt)
int64_t audio_dts, video_dts;
AVStream *vst = wav->vst;
smv_retry:
- audio_dts = (int32_t)st->internal->cur_dts;
- video_dts = (int32_t)vst->internal->cur_dts;
+ audio_dts = (int32_t)ffstream( st)->cur_dts;
+ video_dts = (int32_t)ffstream(vst)->cur_dts;
if (audio_dts != AV_NOPTS_VALUE && video_dts != AV_NOPTS_VALUE) {
/*We always return a video frame first to get the pixel format first*/
@@ -950,7 +951,7 @@ static int w64_read_header(AVFormatContext *s)
ff_metadata_conv_ctx(s, NULL, ff_riff_info_conv);
handle_stream_probing(st);
- st->internal->need_parsing = AVSTREAM_PARSE_FULL_RAW;
+ ffstream(st)->need_parsing = AVSTREAM_PARSE_FULL_RAW;
avio_seek(pb, data_ofs, SEEK_SET);