142
147
static int yuv4_write_header(AVFormatContext *s)
144
149
int* first_pkt = s->priv_data;
149
154
if (s->streams[0]->codec->pix_fmt == PIX_FMT_YUV411P) {
150
155
av_log(s, AV_LOG_ERROR, "Warning: generating rarely used 4:1:1 YUV stream, some mjpegtools might not work.\n");
155
160
(s->streams[0]->codec->pix_fmt != PIX_FMT_YUV444P)) {
156
161
av_log(s, AV_LOG_ERROR, "ERROR: yuv4mpeg only handles yuv444p, yuv422p, yuv420p, yuv411p and gray pixel formats. Use -pix_fmt to select one.\n");