From fe1de12fafcefb9192eb135a472b2d859fe58082 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Wed, 17 Apr 2013 00:37:05 +0200 Subject: Remove two anonymous arrays. Fixes compilation of pngenc.c and flvdec.c with PGC 13.4-0. --- libavformat/flvdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat/flvdec.c') diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 0bb51e0..8bb56e8 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -742,9 +742,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) } } if(i == s->nb_streams){ + static const enum AVMediaType stream_types[] = {AVMEDIA_TYPE_VIDEO, AVMEDIA_TYPE_AUDIO, AVMEDIA_TYPE_DATA}; av_log(s, AV_LOG_WARNING, "Stream discovered after head already parsed\n"); st = create_stream(s, - (int[]){AVMEDIA_TYPE_VIDEO, AVMEDIA_TYPE_AUDIO, AVMEDIA_TYPE_DATA}[stream_type]); + stream_types[stream_type]); if (!st) return AVERROR(ENOMEM); -- cgit v1.1