Fix not finding stream with old libs

pull/2928/head
Isaac Connor 2020-05-02 11:49:28 -04:00
parent 65b8006cd6
commit e9b1eacc6d
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ int RemoteCameraRtsp::PrimeCapture() {
#if LIBAVCODEC_VERSION_CHECK(57, 64, 0, 64, 0)
AVMediaType codec_type = mFormatContext->streams[i]->codecpar->codec_type;
#else
AVMediaType codec_type = mFormatContext->streams[mAudioStreamId]->codec->codec_type;
AVMediaType codec_type = mFormatContext->streams[i]->codec->codec_type;
#endif
#if (LIBAVCODEC_VERSION_CHECK(52, 64, 0, 64, 0) || LIBAVUTIL_VERSION_CHECK(50, 14, 0, 14, 0))