[Ffmpeg-cvslog] CVS: ffmpeg/libavformat raw.c,1.52,1.53

Michael Niedermayer CVS michael
Fri May 6 23:28:57 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv6645/libavformat

Modified Files:
	raw.c 
Log Message:
default to YUV420P if none specified for rawvideo input
a few more common extensions for rawvideo detection


Index: raw.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/raw.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- raw.c	6 May 2005 14:19:17 -0000	1.52
+++ raw.c	6 May 2005 21:28:55 -0000	1.53
@@ -66,7 +66,9 @@
             av_set_pts_info(st, 64, ap->time_base.num, ap->time_base.den);
             st->codec.width = ap->width;
             st->codec.height = ap->height;
-	    st->codec.pix_fmt = ap->pix_fmt;
+            st->codec.pix_fmt = ap->pix_fmt;
+            if(st->codec.pix_fmt == PIX_FMT_NONE)
+                st->codec.pix_fmt= PIX_FMT_YUV420P;
             break;
         default:
             return -1;
@@ -642,7 +644,7 @@
     raw_read_header,
     rawvideo_read_packet,
     raw_read_close,
-    .extensions = "yuv",
+    .extensions = "yuv,cif,qcif",
     .value = CODEC_ID_RAWVIDEO,
 };
 





More information about the ffmpeg-cvslog mailing list