mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
ffmpeg compil versions warnnings
This commit is contained in:
@@ -266,8 +266,9 @@ int cDvbSubtitleConverter::Convert(const uchar *Data, int Length, int64_t pts)
|
|||||||
Bitmaps = new cDvbSubtitleBitmaps(pts);
|
Bitmaps = new cDvbSubtitleBitmaps(pts);
|
||||||
|
|
||||||
AVSubtitle * sub = Bitmaps->GetSub();
|
AVSubtitle * sub = Bitmaps->GetSub();
|
||||||
|
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
|
||||||
av_init_packet(&avpkt);
|
av_init_packet(&avpkt);
|
||||||
|
#endif
|
||||||
avpkt.data = (uint8_t*) Data;
|
avpkt.data = (uint8_t*) Data;
|
||||||
avpkt.size = Length;
|
avpkt.size = Length;
|
||||||
|
|
||||||
|
@@ -286,7 +286,9 @@ CBaseDec::RetCode CFfmpegDec::Decoder(FILE *_in, int /*OutputFd*/, State* state,
|
|||||||
|
|
||||||
AVFrame *frame = NULL;
|
AVFrame *frame = NULL;
|
||||||
AVPacket rpacket;
|
AVPacket rpacket;
|
||||||
|
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
|
||||||
av_init_packet(&rpacket);
|
av_init_packet(&rpacket);
|
||||||
|
#endif
|
||||||
c->channel_layout = c->channel_layout ? c->channel_layout : AV_CH_LAYOUT_STEREO;
|
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);
|
av_opt_set_int(swr, "in_channel_layout", c->channel_layout, 0);
|
||||||
|
@@ -2330,7 +2330,9 @@ void CStreamRec::run()
|
|||||||
|
|
||||||
double total = 0;
|
double total = 0;
|
||||||
while (!stopped) {
|
while (!stopped) {
|
||||||
|
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
|
||||||
av_init_packet(&pkt);
|
av_init_packet(&pkt);
|
||||||
|
#endif
|
||||||
if (av_read_frame(ifcx, &pkt) < 0)
|
if (av_read_frame(ifcx, &pkt) < 0)
|
||||||
break;
|
break;
|
||||||
if (pkt.stream_index < 0)
|
if (pkt.stream_index < 0)
|
||||||
|
@@ -958,7 +958,9 @@ void CStreamStream::run()
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (!stopped) {
|
while (!stopped) {
|
||||||
|
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
|
||||||
av_init_packet(&pkt);
|
av_init_packet(&pkt);
|
||||||
|
#endif
|
||||||
if (av_read_frame(ifcx, &pkt) < 0)
|
if (av_read_frame(ifcx, &pkt) < 0)
|
||||||
break;
|
break;
|
||||||
if (pkt.stream_index < 0)
|
if (pkt.stream_index < 0)
|
||||||
|
Reference in New Issue
Block a user