Crush on av_open_input_stream.

For the developers that use FFmpeg in their software.
Post Reply
Akad
Posts: 2
Joined: Mon Jan 09, 2012 12:05 pm

Crush on av_open_input_stream.

Post by Akad » Mon Jan 09, 2012 2:30 pm

Hi!

I need to open a custom input stream in ffmpeg. I've done the following:

Code: Select all

m_pFormat=av_find_input_format("mp3");
m_pFormat->flags = AVFMT_NOFILE;
if (init_put_byte(&m_pIOContext, m_pInputBuf, INPUT_BUF_SIZE - AVPROBE_PADDING_SIZE, 0, this, read_packets, NULL, NULL) < 0)
{
	FreeFFAll();
	return FALSE;
}
m_pIOContext.is_streamed = 1;
m_pIOContext.seekable = FALSE;
if (av_open_input_stream(&m_pFormatCtx,&m_pIOContext,"",m_pFormat,NULL)<0)
{
	FreeFFAll();
	return FALSE;
}
And I've got a crush at av_open_input_stream(). I tried to use different versions of ffmpeg, tried to use builds by Kyle Schwarz, but I've always got crush on here. I tried to open an other ways (use av_probe_input_format, create AVFormatContext via avformat_alloc_context and many others) but I've always got crush on here.
I use MS visual studio, and can not see where does this crush occurs. Can any body advise me how to debug that crushes?

Please assist and thank you

Post Reply
'