ffmpeg compil versions warnnings

This commit is contained in:
Jacek Jendrzej
2021-10-27 12:31:48 +02:00
parent fb13b064fb
commit 2453d8a030
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)