[x264-devel] Re: Is this output meaningful?

Tomas Carnecky tom at dbservice.com
Mon Mar 5 10:47:20 CET 2007


farnaz s.m wrote:
> ***********************
> #include <string.h>
> #include <stdio.h>
> main(void)
> {
> 
> FILE *fp;
> fp=fopen("tesss.mp4","rb");/*or tess.mkv or tess.x264*/
> if (fp==0)
> 
> printf("cannot open\n");
> else
> printf("the bitstream is \n%d\n",fp);

First: fp is a pointer, so you should use %p.
Second: it's a handle to the opened file, the pointer itself has no 
useful meaning on its own.

man 3 fopen

> 
> }
> 

If you want to use fopen and friends:
man 3 fseek
and use a combination of fseek()/ftell()

Or use stat
man 2 stat

tom

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list