diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-04-18 13:52:13 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-04-18 13:53:47 +0200 |
commit | 9db1c6455e47e4deb7e584642f06276e9ecf833d (patch) | |
tree | 0623ed2dd3899625d4e7c8332ac4be3602f3e013 /libavformat/gif.c | |
parent | 01367b0fca0c257c975c1a23dcd64ca717571eb0 (diff) | |
download | ffmpeg-9db1c6455e47e4deb7e584642f06276e9ecf833d.tar.gz |
lavf/gif: support only GIF codec.
Diffstat (limited to 'libavformat/gif.c')
-rw-r--r-- | libavformat/gif.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/gif.c b/libavformat/gif.c index 696815684f..3d86f23fe6 100644 --- a/libavformat/gif.c +++ b/libavformat/gif.c @@ -77,10 +77,11 @@ static int gif_write_header(AVFormatContext *s) int width, height; uint32_t palette[AVPALETTE_COUNT]; - if (s->nb_streams != 1 || !s->streams[0]->codec || - s->streams[0]->codec->codec_type != AVMEDIA_TYPE_VIDEO) { + if (s->nb_streams != 1 || + s->streams[0]->codec->codec_type != AVMEDIA_TYPE_VIDEO || + s->streams[0]->codec->codec_id != AV_CODEC_ID_GIF) { av_log(s, AV_LOG_ERROR, - "GIF supports only a single video stream.\n"); + "GIF muxer supports only a single video GIF stream.\n"); return AVERROR(EINVAL); } |