fix crash by using the correct FormatContext when dumping stream info
This commit is contained in:
parent
f50bfab0aa
commit
526b44b377
|
@ -540,7 +540,7 @@ int FfmpegCamera::OpenFfmpeg() {
|
||||||
mAudioCodecContext = mAudioStream->codec;
|
mAudioCodecContext = mAudioStream->codec;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
zm_dump_stream_format(mFormatContext, mAudioStreamId, 0, 0);
|
zm_dump_stream_format((mSecondFormatContext?mSecondFormatContext:mFormatContext), mAudioStreamId, 0, 0);
|
||||||
// Open the codec
|
// Open the codec
|
||||||
#if !LIBAVFORMAT_VERSION_CHECK(53, 8, 0, 8, 0)
|
#if !LIBAVFORMAT_VERSION_CHECK(53, 8, 0, 8, 0)
|
||||||
if ( avcodec_open(mAudioCodecContext, mAudioCodec) < 0 )
|
if ( avcodec_open(mAudioCodecContext, mAudioCodec) < 0 )
|
||||||
|
|
Loading…
Reference in New Issue