Hi Per,
sorry for all the delay... first I was really busy with different stuff,
and then I started reading a few really good books which I wanted to
read for a long time ;-)
Per Mellander schrieb:
> Tested more and it seems that the there's a difference when opening a
> file with av_open_input_file and setting AVInputFormat *fmt to NULL.
from avformat.h :
/**
* Open a media file as input. The codec are not opened. Only the file
* header (if present) is read.
*
* @param ic_ptr the opened media file handle is put here
* @param filename filename to open.
* @param fmt if non NULL, force the file format to use
* @param buf_size optional buffer size (zero if default is OK)
* @param ap additional parameters needed when opening the file (NULL if
default
)
* @return 0 if OK. AVERROR_xxx otherwise.
*/
int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
AVInputFormat *fmt,
int buf_size,
AVFormatParameters *ap);
I don't see how calling av_open_input_file() with NULL for fmt and using
a variable which is set to NULL could make any difference. Or am I
missing anything?
Of course one could try to force a format, but I have no idea how to
make it easily possible to select the proper format.
Bye,
Martin
_______________________________________________
Softdevice-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/softdevice-devel