diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-04-17 02:37:05 +0400 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-04-17 02:37:05 +0400 |
commit | fe1de12fafcefb9192eb135a472b2d859fe58082 (patch) | |
tree | 2ccd1140b81681a4a27bf793ba88ffa93a3252b6 /libavformat | |
parent | 9802f56684fe1cda5b42b76deb83d6a06a42d07d (diff) |
Remove two anonymous arrays.
Fixes compilation of pngenc.c and flvdec.c with PGC 13.4-0.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/flvdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 0bb51e0ea7..8bb56e85c0 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); |