[FFmpeg-cvslog] r19543 - trunk/libavdevice/vfwcap.c

ramiro subversion
Thu Jul 30 19:25:15 CEST 2009


Author: ramiro
Date: Thu Jul 30 19:25:15 2009
New Revision: 19543

Log:
vfwcap: Reorder some code to simplify next patch.

Modified:
   trunk/libavdevice/vfwcap.c

Modified: trunk/libavdevice/vfwcap.c
==============================================================================
--- trunk/libavdevice/vfwcap.c	Thu Jul 30 18:18:33 2009	(r19542)
+++ trunk/libavdevice/vfwcap.c	Thu Jul 30 19:25:15 2009	(r19543)
@@ -319,19 +319,18 @@ static int vfw_read_header(AVFormatConte
     codec->codec_type = CODEC_TYPE_VIDEO;
     codec->width = width;
     codec->height = height;
-    codec->codec_id = CODEC_ID_RAWVIDEO;
     codec->pix_fmt = vfw_pixfmt(biCompression, biBitCount);
-    if(biCompression == BI_RGB)
-        codec->bits_per_coded_sample = biBitCount;
-
-    av_set_pts_info(st, 32, 1, 1000);
-
     if(codec->pix_fmt == PIX_FMT_NONE) {
         av_log(s, AV_LOG_ERROR, "Unknown compression type. "
                          "Please report verbose (-v 9) debug information.\n");
         vfw_read_close(s);
         return AVERROR_PATCHWELCOME;
     }
+    codec->codec_id = CODEC_ID_RAWVIDEO;
+    if(biCompression == BI_RGB)
+        codec->bits_per_coded_sample = biBitCount;
+
+    av_set_pts_info(st, 32, 1, 1000);
 
     ctx->mutex = CreateMutex(NULL, 0, NULL);
     if(!ctx->mutex) {



More information about the ffmpeg-cvslog mailing list