Index: libvo/vo_yuv4mpeg.c =================================================================== RCS file: /cvsroot/mplayer/main/libvo/vo_yuv4mpeg.c,v retrieving revision 1.14 diff -u -r1.14 vo_yuv4mpeg.c --- libvo/vo_yuv4mpeg.c 14 Dec 2002 17:12:40 -0000 1.14 +++ libvo/vo_yuv4mpeg.c 16 Jun 2003 03:35:53 -0000 @@ -63,6 +63,8 @@ static FILE *yuv_out; static int write_bytes; +static int first_frame = 1; + #define Y4M_ILACE_NONE 'p' /* non-interlaced, progressive frame */ #define Y4M_ILACE_TOP_FIRST 't' /* interlaced, top-field first */ #define Y4M_ILACE_BOTTOM_FIRST 'b' /* interlaced, bottom-field first */ @@ -229,6 +231,13 @@ int rgb_stride, uv_stride, field_height; unsigned int i, low_ofs; + // No need to write the frame-before-the-first-frame, since it is junk. + if (first_frame) + { + first_frame = 0; + return VO_TRUE; + } + fprintf(yuv_out, "FRAME\n"); if (using_format != IMGFMT_YV12) @@ -278,6 +287,13 @@ int rgb_stride, uv_stride, field_height; unsigned int i, low_ofs; + // No need to write the frame-before-the-first-frame, since it is junk. + if (first_frame) + { + first_frame = 0; + return; + } + fprintf(yuv_out, "FRAME\n"); if (using_format != IMGFMT_YV12)