use AVFormatContext to log
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 18 Oct 2006 15:10:14 +0000 (15:10 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 18 Oct 2006 15:10:14 +0000 (15:10 +0000)
Originally committed as revision 6731 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/gxfenc.c

index 2293762..033e6c6 100644 (file)
@@ -645,7 +645,7 @@ static int gxf_write_header(AVFormatContext *s)
                 }
                 break;
             default:
                 }
                 break;
             default:
-                av_log(NULL, AV_LOG_ERROR, "video codec not supported\n");
+                av_log(s, AV_LOG_ERROR, "video codec not supported\n");
                 return -1;
             }
         }
                 return -1;
             }
         }