1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 12:17:12 +00:00

small cosmetic to avoid gcc warnings

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@171 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi_esp 2001-03-20 02:04:33 +00:00
parent d48476cd19
commit a08f4d5958
3 changed files with 3 additions and 4 deletions

View File

@ -20,7 +20,7 @@ $(LIBNAME): .depend $(OBJS)
$(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)

View File

@ -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;

View File

@ -8,7 +8,6 @@
int main(int argc,char* argv[]){
FILE *f;
FILE *f2;
BITMAPINFOHEADER bih;
int len;
char *src;
@ -19,7 +18,7 @@ int main(int argc,char* argv[]){
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);