Lines Matching refs:header
77 /* construct stream header, if this is the first frame */
104 /* for the first packet we have to output the header as well */
108 av_log(s, AV_LOG_ERROR, "Error. YUV4MPEG stream header write failed.\n");
115 /* construct frame header */
192 char header[MAX_YUV4_HEADER+10]; // Include headroom for the longest option
203 header[i] = get_byte(pb);
204 if (header[i] == '\n') {
205 header[i+1] = 0x20; // Add a space after last option. Makes parsing "444" vs "444alpha" easier.
206 header[i+2] = 0;
211 if (strncmp(header, Y4M_MAGIC, strlen(Y4M_MAGIC))) return -1;
215 header_end = &header[i+1]; // Include space
216 for(tokstart = &header[strlen(Y4M_MAGIC) + 1]; tokstart < header_end; tokstart++) {
273 av_log(s, AV_LOG_ERROR, "YUV4MPEG has invalid header.\n");
308 av_log(s, AV_LOG_ERROR, "YUV4MPEG has invalid header.\n");
349 char header[MAX_FRAME_HEADER+1];
355 header[i] = get_byte(s->pb);
356 if (header[i] == '\n') {
357 header[i+1] = 0;
362 if (strncmp(header, Y4M_FRAME_MAGIC, strlen(Y4M_FRAME_MAGIC))) return -1;
385 /* check file header */