changeset 749:1a19a6add674 libavformat

default to YUV420P if none specified for rawvideo input a few more common extensions for rawvideo detection
author michael
date Fri, 06 May 2005 21:28:55 +0000
parents 6bd8b2955534
children ba67f8c7f8f9
files raw.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/raw.c	Fri May 06 21:11:38 2005 +0000
+++ b/raw.c	Fri May 06 21:28:55 2005 +0000
@@ -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,
 };