Commit 3c5e6e76 authored by Clément Bœsch's avatar Clément Bœsch

avformat/img2enc: reindent after previous commit.

parent f70db229
...@@ -59,13 +59,12 @@ static int write_header(AVFormatContext *s) ...@@ -59,13 +59,12 @@ static int write_header(AVFormatContext *s)
img->muxer = "gif"; img->muxer = "gif";
} else if (st->codec->codec_id == AV_CODEC_ID_RAWVIDEO) { } else if (st->codec->codec_id == AV_CODEC_ID_RAWVIDEO) {
const char *str = strrchr(img->path, '.'); const char *str = strrchr(img->path, '.');
/* TODO: reindent */ img->split_planes = str
img->split_planes = str && !av_strcasecmp(str + 1, "y")
&& !av_strcasecmp(str + 1, "y") && s->nb_streams == 1
&& s->nb_streams == 1 && desc
&& desc &&(desc->flags & AV_PIX_FMT_FLAG_PLANAR)
&&(desc->flags & AV_PIX_FMT_FLAG_PLANAR) && desc->nb_components >= 3;
&& desc->nb_components >= 3;
} }
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment