On 2/6/2010 9:35 μμ, Neil Menne wrote:
When I call:
char formatName[] = "mpegts";
AVInputFormat* iFormat = av_find_input_format(formatName);
Why does iFormat's codec_tag not get initialized?
It's still NULL and that is causing other stuff to break.
Hello, I'm doing this to get a valid AVInputFormat *
AVProbeData probe_data;
probe_data.filename = "Myfile.mpeg";
probe_data.buf_size = 4096;
probe_data.buf = malloc(probe_data.buf_size);
// read "probe_data.buf_size" bytes from your file into probe_data.buf
AVInputFormat *fmt = av_probe_input_format(&probe_data, 1);
free(probe_data.buf);
Best regards
Michael
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user