[FFmpeg-cvslog] lavf/gif: support only GIF codec.
Clément Bœsch
git at videolan.org
Thu Apr 18 13:54:45 CEST 2013
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Apr 18 13:52:13 2013 +0200| [9db1c6455e47e4deb7e584642f06276e9ecf833d] | committer: Clément Bœsch
lavf/gif: support only GIF codec.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9db1c6455e47e4deb7e584642f06276e9ecf833d
---
libavformat/gif.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/libavformat/gif.c b/libavformat/gif.c
index 6968156..3d86f23 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);
}
More information about the ffmpeg-cvslog
mailing list