Open
Description
Compiling audiowmark on Debian 12.4, I get deprecation warnings:
$ apt info libavcodec-dev
Package: libavcodec-dev
Version: 7:5.1.4-0+deb12u1
Priority: optional
Section: libdevel
Source: ffmpeg
...
$ ./configure --with-ffmpeg && make -j20
...
hlsoutputstream.cc: In member function ‘Error HLSOutputStream::add_stream(const AVCodec**, AVCodecID)’:
hlsoutputstream.cc:116:48: warning: ‘uint64_t av_get_channel_layout(const char*)’ is deprecated [-Wdeprecated-declarations]
116 | uint64_t want_layout = av_get_channel_layout (m_channel_layout.c_str());
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/libavutil/frame.h:33,
from /usr/include/x86_64-linux-gnu/libavutil/hwcontext.h:23,
from /usr/include/x86_64-linux-gnu/libavcodec/codec.h:27,
from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
from hlsoutputstream.hh:27,
from hlsoutputstream.cc:18:
/usr/include/x86_64-linux-gnu/libavutil/channel_layout.h:408:10: note: declared here
408 | uint64_t av_get_channel_layout(const char *name);
| ^~~~~~~~~~~~~~~~~~~~~
hlsoutputstream.cc:119:10: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
119 | m_enc->channel_layout = want_layout;
| ^~~~~~~~~~~~~~
In file included from hlsoutputstream.hh:32:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:119:10: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
119 | m_enc->channel_layout = want_layout;
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:119:10: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
119 | m_enc->channel_layout = want_layout;
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:120:17: warning: ‘AVCodec::channel_layouts’ is deprecated [-Wdeprecated-declarations]
120 | if ((*codec)->channel_layouts)
| ^~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:226:21: note: declared here
226 | const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
| ^~~~~~~~~~~~~~~
hlsoutputstream.cc:120:17: warning: ‘AVCodec::channel_layouts’ is deprecated [-Wdeprecated-declarations]
120 | if ((*codec)->channel_layouts)
| ^~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:226:21: note: declared here
226 | const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
| ^~~~~~~~~~~~~~~
hlsoutputstream.cc:120:17: warning: ‘AVCodec::channel_layouts’ is deprecated [-Wdeprecated-declarations]
120 | if ((*codec)->channel_layouts)
| ^~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:226:21: note: declared here
226 | const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
| ^~~~~~~~~~~~~~~
hlsoutputstream.cc:122:14: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
122 | m_enc->channel_layout = (*codec)->channel_layouts[0];
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:122:14: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
122 | m_enc->channel_layout = (*codec)->channel_layouts[0];
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:122:14: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
122 | m_enc->channel_layout = (*codec)->channel_layouts[0];
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:122:41: warning: ‘AVCodec::channel_layouts’ is deprecated [-Wdeprecated-declarations]
122 | m_enc->channel_layout = (*codec)->channel_layouts[0];
| ^~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:226:21: note: declared here
226 | const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
| ^~~~~~~~~~~~~~~
hlsoutputstream.cc:122:41: warning: ‘AVCodec::channel_layouts’ is deprecated [-Wdeprecated-declarations]
122 | m_enc->channel_layout = (*codec)->channel_layouts[0];
| ^~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:226:21: note: declared here
226 | const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
| ^~~~~~~~~~~~~~~
hlsoutputstream.cc:122:41: warning: ‘AVCodec::channel_layouts’ is deprecated [-Wdeprecated-declarations]
122 | m_enc->channel_layout = (*codec)->channel_layouts[0];
| ^~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:226:21: note: declared here
226 | const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
| ^~~~~~~~~~~~~~~
hlsoutputstream.cc:123:33: warning: ‘AVCodec::channel_layouts’ is deprecated [-Wdeprecated-declarations]
123 | for (int i = 0; (*codec)->channel_layouts[i]; i++)
| ^~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:226:21: note: declared here
226 | const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
| ^~~~~~~~~~~~~~~
hlsoutputstream.cc:123:33: warning: ‘AVCodec::channel_layouts’ is deprecated [-Wdeprecated-declarations]
123 | for (int i = 0; (*codec)->channel_layouts[i]; i++)
| ^~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:226:21: note: declared here
226 | const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
| ^~~~~~~~~~~~~~~
hlsoutputstream.cc:123:33: warning: ‘AVCodec::channel_layouts’ is deprecated [-Wdeprecated-declarations]
123 | for (int i = 0; (*codec)->channel_layouts[i]; i++)
| ^~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:226:21: note: declared here
226 | const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
| ^~~~~~~~~~~~~~~
hlsoutputstream.cc:125:25: warning: ‘AVCodec::channel_layouts’ is deprecated [-Wdeprecated-declarations]
125 | if ((*codec)->channel_layouts[i] == want_layout)
| ^~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:226:21: note: declared here
226 | const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
| ^~~~~~~~~~~~~~~
hlsoutputstream.cc:125:25: warning: ‘AVCodec::channel_layouts’ is deprecated [-Wdeprecated-declarations]
125 | if ((*codec)->channel_layouts[i] == want_layout)
| ^~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:226:21: note: declared here
226 | const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
| ^~~~~~~~~~~~~~~
hlsoutputstream.cc:125:25: warning: ‘AVCodec::channel_layouts’ is deprecated [-Wdeprecated-declarations]
125 | if ((*codec)->channel_layouts[i] == want_layout)
| ^~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:226:21: note: declared here
226 | const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
| ^~~~~~~~~~~~~~~
hlsoutputstream.cc:126:22: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
126 | m_enc->channel_layout = want_layout;
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:126:22: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
126 | m_enc->channel_layout = want_layout;
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:126:22: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
126 | m_enc->channel_layout = want_layout;
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:129:29: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
129 | if (want_layout != m_enc->channel_layout)
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:129:29: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
129 | if (want_layout != m_enc->channel_layout)
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:129:29: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
129 | if (want_layout != m_enc->channel_layout)
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:131:10: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
131 | m_enc->channels = av_get_channel_layout_nb_channels (m_enc->channel_layout);
| ^~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1006:9: note: declared here
1006 | int channels;
| ^~~~~~~~
hlsoutputstream.cc:131:10: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
131 | m_enc->channels = av_get_channel_layout_nb_channels (m_enc->channel_layout);
| ^~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1006:9: note: declared here
1006 | int channels;
| ^~~~~~~~
hlsoutputstream.cc:131:10: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
131 | m_enc->channels = av_get_channel_layout_nb_channels (m_enc->channel_layout);
| ^~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1006:9: note: declared here
1006 | int channels;
| ^~~~~~~~
hlsoutputstream.cc:131:63: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
131 | m_enc->channels = av_get_channel_layout_nb_channels (m_enc->channel_layout);
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:131:63: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
131 | m_enc->channels = av_get_channel_layout_nb_channels (m_enc->channel_layout);
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:131:63: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
131 | m_enc->channels = av_get_channel_layout_nb_channels (m_enc->channel_layout);
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:131:55: warning: ‘int av_get_channel_layout_nb_channels(uint64_t)’ is deprecated [-Wdeprecated-declarations]
131 | m_enc->channels = av_get_channel_layout_nb_channels (m_enc->channel_layout);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavutil/channel_layout.h:449:5: note: declared here
449 | int av_get_channel_layout_nb_channels(uint64_t channel_layout);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hlsoutputstream.cc: In member function ‘AVFrame* HLSOutputStream::alloc_audio_frame(AVSampleFormat, uint64_t, int, int, Error&)’:
hlsoutputstream.cc:154:10: warning: ‘AVFrame::channel_layout’ is deprecated [-Wdeprecated-declarations]
154 | frame->channel_layout = channel_layout;
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavutil/frame.h:510:14: note: declared here
510 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:154:10: warning: ‘AVFrame::channel_layout’ is deprecated [-Wdeprecated-declarations]
154 | frame->channel_layout = channel_layout;
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavutil/frame.h:510:14: note: declared here
510 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:154:10: warning: ‘AVFrame::channel_layout’ is deprecated [-Wdeprecated-declarations]
154 | frame->channel_layout = channel_layout;
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavutil/frame.h:510:14: note: declared here
510 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc: In member function ‘Error HLSOutputStream::open_audio(const AVCodec*, AVDictionary*)’:
hlsoutputstream.cc:192:62: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
192 | m_frame = alloc_audio_frame (m_enc->sample_fmt, m_enc->channel_layout, m_enc->sample_rate, nb_samples, err);
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:192:62: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
192 | m_frame = alloc_audio_frame (m_enc->sample_fmt, m_enc->channel_layout, m_enc->sample_rate, nb_samples, err);
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:192:62: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
192 | m_frame = alloc_audio_frame (m_enc->sample_fmt, m_enc->channel_layout, m_enc->sample_rate, nb_samples, err);
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:196:62: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
196 | m_tmp_frame = alloc_audio_frame (AV_SAMPLE_FMT_FLT, m_enc->channel_layout, m_enc->sample_rate, nb_samples, err);
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:196:62: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
196 | m_tmp_frame = alloc_audio_frame (AV_SAMPLE_FMT_FLT, m_enc->channel_layout, m_enc->sample_rate, nb_samples, err);
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:196:62: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
196 | m_tmp_frame = alloc_audio_frame (AV_SAMPLE_FMT_FLT, m_enc->channel_layout, m_enc->sample_rate, nb_samples, err);
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
1060 | uint64_t channel_layout;
| ^~~~~~~~~~~~~~
hlsoutputstream.cc:215:66: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
215 | av_opt_set_int (m_swr_ctx, "in_channel_count", m_enc->channels, 0);
| ^~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1006:9: note: declared here
1006 | int channels;
| ^~~~~~~~
hlsoutputstream.cc:215:66: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
215 | av_opt_set_int (m_swr_ctx, "in_channel_count", m_enc->channels, 0);
| ^~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1006:9: note: declared here
1006 | int channels;
| ^~~~~~~~
hlsoutputstream.cc:215:66: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
215 | av_opt_set_int (m_swr_ctx, "in_channel_count", m_enc->channels, 0);
| ^~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1006:9: note: declared here
1006 | int channels;
| ^~~~~~~~
hlsoutputstream.cc:218:66: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
218 | av_opt_set_int (m_swr_ctx, "out_channel_count", m_enc->channels, 0);
| ^~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1006:9: note: declared here
1006 | int channels;
| ^~~~~~~~
hlsoutputstream.cc:218:66: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
218 | av_opt_set_int (m_swr_ctx, "out_channel_count", m_enc->channels, 0);
| ^~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1006:9: note: declared here
1006 | int channels;
| ^~~~~~~~
hlsoutputstream.cc:218:66: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
218 | av_opt_set_int (m_swr_ctx, "out_channel_count", m_enc->channels, 0);
| ^~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1006:9: note: declared here
1006 | int channels;
| ^~~~~~~~
CXX testthreadpool.o
...
Metadata
Metadata
Assignees
Labels
No labels