diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 1941c5ffee..e0b79bb754 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -524,7 +524,8 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, static int flv_read_metabody(AVFormatContext *s, int64_t next_pos) { AMFDataType type; - AVStream *stream, *astream, *vstream, *dstream; + AVStream *stream, *astream, *vstream; + AVStream av_unused *dstream; AVIOContext *ioc; int i; // only needs to hold the string "onMetaData".