[Ffmpeg-devel] wrong value in nb_streams
Sven Heyll
sven.heyll
Thu May 26 16:10:49 CEST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
has anyone an idea why the nb_streams member in AVFormatContext
contains the value 138368464 instead of a meaningful value( i.e.2)
in the following context?
class AVPacketSource {
public:
...
void open( std::string const& _file_name ) throw (MediaException)
{
// a temporary format context
AVFormatContext *fmt_ctx = 0;
av_register_all();
// dont care what was before this call - reset/close everything
reset();
// try to open the file
if ( av_open_input_file( &fmt_ctx, _file_name.c_str(), 0, 0, 0 ) != 0 ) {
reset();
return ;
}
// try to fill in the stream infos
if ( av_find_stream_info( fmt_ctx ) < 0 ) {
reset();
return ;
}
dump_format( fmt_ctx, 0, _file_name.c_str(), false );
^^^^^^^^^^^^ THIS WORKS FINE AND DISPLAYS USEFEUL INFOS
// check if the stream count given makes sense
if ( ( fmt_ctx->nb_streams < 0 ) || ( fmt_ctx->nb_streams >= MAX_STREAMS
) ) {
reset();
YLL_THROW( MediaException, "Invalid Stream count!", 0 );
^^^^^^^^^^^^^^^MY PROBLEM: Throws here, fmt_ctx->nb_streams is 138368464
}
}
...
};
Can you please help me? What infos do you need?
greetings,
Sven Heyll
p.s.: "Hi!" to all members of this list and Thanks alot for ffmpeg!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
iD8DBQFCldjnvIrMPGBoXZ8RAuVoAJ9fWHD+mOhIY4XFq7TAMVE/qShfkwCfag2+
QxjlZp5XUMGAtJUiAjguwSE=
=AAyL
-----END PGP SIGNATURE-----
More information about the ffmpeg-devel
mailing list