diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 765eee5893..57ef06126a 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -581,7 +581,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) if (flv->wrong_dts) dts = AV_NOPTS_VALUE; } - if (type == 0 && (!st->codec->extradata || st->codec->codec_id != CODEC_ID_H264)) { + if (type == 0 && !st->codec->extradata) { if (st->codec->extradata) { if ((ret = flv_queue_extradata(flv, s->pb, stream_type, size)) < 0) return ret;