ffmpeg compil versions warnnings

Origin commit data
------------------
Branch: ni/coolstream
Commit: fcb392908b
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:28:50 +02:00
committed by vanhofen
parent 2a6f19763c
commit 4afe07378f
4 changed files with 8 additions and 1 deletions

View File

@@ -266,8 +266,9 @@ int cDvbSubtitleConverter::Convert(const uchar *Data, int Length, int64_t pts)
Bitmaps = new cDvbSubtitleBitmaps(pts);
AVSubtitle * sub = Bitmaps->GetSub();
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
av_init_packet(&avpkt);
#endif
avpkt.data = (uint8_t*) Data;
avpkt.size = Length;

View File

@@ -286,7 +286,9 @@ CBaseDec::RetCode CFfmpegDec::Decoder(FILE *_in, int /*OutputFd*/, State* state,
AVFrame *frame = NULL;
AVPacket rpacket;
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
av_init_packet(&rpacket);
#endif
c->channel_layout = c->channel_layout ? c->channel_layout : AV_CH_LAYOUT_STEREO;
av_opt_set_int(swr, "in_channel_layout", c->channel_layout, 0);

View File

@@ -2422,7 +2422,9 @@ void CStreamRec::run()
double total = 0;
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)

View File

@@ -961,7 +961,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)