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

@@ -379,7 +379,9 @@ void cAudio::run()
char tmp[64] = "unknown";
curr_pts = 0;
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
av_init_packet(&avpkt);
#endif
inp = av_find_input_format("mpegts");
AVIOContext *pIOCtx = avio_alloc_context(inbuf, INBUF_SIZE, // internal Buffer and its size
0, // bWriteable (1=true,0=false)

View File

@@ -300,7 +300,9 @@ bool cVideo::ShowPicture(const char *fname)
hal_info("%s: Could not allocate video frame\n", __func__);
goto out_free;
}
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
av_init_packet(&avpkt);
#endif
if (av_read_frame(avfc, &avpkt) < 0)
{
hal_info("%s: av_read_frame < 0\n", __func__);
@@ -520,8 +522,9 @@ void cVideo::run(void)
buf_in = 0;
buf_out = 0;
dec_r = 0;
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
av_init_packet(&avpkt);
#endif
inp = av_find_input_format("mpegts");
AVIOContext *pIOCtx = avio_alloc_context(inbuf, INBUF_SIZE, // internal Buffer and its size
0, // bWriteable (1=true,0=false)