changeset 738:dad78387544a libavformat

Update yuv4mpeg to use PIX_FMT_NONE patch by (Roine Gustafsson <roine users sourceforge net)
author michael
date Tue, 26 Apr 2005 08:57:41 +0000
parents 119ac74d1c49
children db0a5e0f4db5
files yuv4mpeg.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/yuv4mpeg.c	Mon Apr 25 18:29:06 2005 +0000
+++ b/yuv4mpeg.c	Tue Apr 26 08:57:41 2005 +0000
@@ -192,7 +192,7 @@
     int i;
     ByteIOContext *pb = &s->pb;
     int width=-1, height=-1, raten=0, rated=0, aspectn=0, aspectd=0,interlaced_frame=0,top_field_first=0;
-    enum PixelFormat pix_fmt=PIX_FMT_NB,alt_pix_fmt=PIX_FMT_NB;
+    enum PixelFormat pix_fmt=PIX_FMT_NONE,alt_pix_fmt=PIX_FMT_NONE;
     AVStream *st;
     
     for (i=0; i<MAX_YUV4_HEADER; i++) {
@@ -300,8 +300,8 @@
         return -1;        
     }
     
-    if (pix_fmt == PIX_FMT_NB) {
-        if (alt_pix_fmt == PIX_FMT_NB)
+    if (pix_fmt == PIX_FMT_NONE) {
+        if (alt_pix_fmt == PIX_FMT_NONE)
             pix_fmt = PIX_FMT_YUV420P;
         else
             pix_fmt = alt_pix_fmt;