ffmpeg compil versions warnnings

Origin commit data
------------------
Branch: master
Commit: 2c025f2e4f
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2021-10-27 (Wed, 27 Oct 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2021-10-27 21:25:30 +02:00
committed by vanhofen
parent 078c4a3954
commit 5a8bbae8bd
6 changed files with 22 additions and 5 deletions

View File

@@ -261,8 +261,9 @@ bool Input::Play()
}
AVPacket packet;
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
av_init_packet(&packet);
#endif
int err = av_read_frame(avfc, &packet);
if (err == AVERROR(EAGAIN))
{
@@ -449,8 +450,9 @@ bool Input::ReadSubtitle(const char *filename, const char *format, int pid)
}
AVPacket packet;
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
av_init_packet(&packet);
#endif
while (av_read_frame(subavfc, &packet) > -1)
{
AVSubtitle sub;