changeset 170:a4d3c83eeb52

small cosmetic to avoid gcc warnings
author arpi_esp
date Tue, 20 Mar 2001 02:04:33 +0000
parents 550ebe869cec
children 74d549cfd4a2
files loader/dshow/Makefile loader/dshow/cmediasample.c loader/dshow/test.c
diffstat 3 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/loader/dshow/Makefile	Tue Mar 20 01:59:42 2001 +0000
+++ b/loader/dshow/Makefile	Tue Mar 20 02:04:33 2001 +0000
@@ -20,7 +20,7 @@
 	$(AR) r $(LIBNAME) $(OBJS)
 
 test:   test.c $(LIBNAME)
-	$(CC) test.c $(CFLAGS) -o test -L. -lDS_Filter -L.. -lloader -ldl -lpthread -lstdc++
+	$(CC) test.c -Wall $(CFLAGS) -o test -L. -lDS_Filter -L.. -lloader -ldl -lpthread -lstdc++
 
 all:	$(LIBNAME)
 
--- a/loader/dshow/cmediasample.c	Tue Mar 20 01:59:42 2001 +0000
+++ b/loader/dshow/cmediasample.c	Tue Mar 20 02:04:33 2001 +0000
@@ -1,7 +1,7 @@
 #include <stdio.h>
 #include <string.h>
 #include "cmediasample.h"
-#define E_NOTIMPL 0x80004003
+//#define E_NOTIMPL 0x80004003
 CMediaSample::CMediaSample(IMemAllocator* allocator, long _size):refcount(0)
 {
     vt=new IMediaSample_vt;
--- a/loader/dshow/test.c	Tue Mar 20 01:59:42 2001 +0000
+++ b/loader/dshow/test.c	Tue Mar 20 02:04:33 2001 +0000
@@ -8,7 +8,6 @@
 
 int main(int argc,char* argv[]){
     FILE *f;
-    FILE *f2;
     BITMAPINFOHEADER bih;
     int len;
     char *src;
@@ -19,7 +18,7 @@
     f=fopen("test.divx","rb");
     
     fread(&bih,sizeof(BITMAPINFOHEADER),1,f);
-    printf("frame dim: %d x %d \n",bih.biWidth,bih.biHeight);
+    printf("frame dim: %d x %d \n",(int)bih.biWidth,(int)bih.biHeight);
 
     src=(char*)malloc(512000);
     len=fread(src,1,512000,f);