ffmpeg compil versions warnnings

This commit is contained in:
Jacek Jendrzej
2021-10-27 12:34:55 +02:00
parent 7c22c30e0a
commit 6045e1082c
4 changed files with 8 additions and 1 deletions

View File

@@ -958,7 +958,9 @@ void CStreamStream::run()
}
while (!stopped) {
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
av_init_packet(&pkt);
#endif
if (av_read_frame(ifcx, &pkt) < 0)
break;
if (pkt.stream_index < 0)