[FFmpeg-devel] [PATCH 5/6] mpeg: fix use of deprecated struct
misty at brew.sh
misty at brew.sh
Fri Jan 5 13:34:47 EET 2018
From: Misty De Meo <mistydemeo at gmail.com>
---
libavformat/mpeg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index afde768199..ca848cacbb 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -561,8 +561,8 @@ redo:
len--;
for (i = 0; i < s->nb_streams; i++) {
st = s->streams[i];
- if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO &&
- st->codec->codec_id == AV_CODEC_ID_ATRAC3P &&
+ if (st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO &&
+ st->codecpar->codec_id == AV_CODEC_ID_ATRAC3P &&
st->id - 0x1BD0 == (startcode & 0xF))
goto found;
}
--
2.15.1
More information about the ffmpeg-devel
mailing list