Skip to content

Commit

Permalink
libmyth/audio: constify pointers to satisfy -fpermissive
Browse files Browse the repository at this point in the history
  • Loading branch information
ulmus-scott authored and bennettpeter committed Sep 19, 2022
1 parent a1868de commit 40a04d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/audio/audiooutputdigitalencoder.cpp
Expand Up @@ -117,7 +117,7 @@ bool AudioOutputDigitalEncoder::Init(
Reset();

LOG(VB_GENERAL, LOG_INFO, LOC + QString("Using codec %1 to encode audio").arg(CODECNAME));
AVCodec *codec = avcodec_find_encoder_by_name(CODECNAME);
const AVCodec *codec = avcodec_find_encoder_by_name(CODECNAME);
if (!codec)
{
LOG(VB_GENERAL, LOG_ERR, LOC + "Could not find codec");
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/audio/spdifencoder.cpp
Expand Up @@ -24,7 +24,7 @@ SPDIFEncoder::SPDIFEncoder(const QString& muxer, AVCodecID codec_id)
{
QByteArray dev_ba = muxer.toLatin1();

AVOutputFormat *fmt = av_guess_format(dev_ba.constData(), nullptr, nullptr);
const AVOutputFormat *fmt = av_guess_format(dev_ba.constData(), nullptr, nullptr);
if (!fmt)
{
LOG(VB_AUDIO, LOG_ERR, LOC + "av_guess_format");
Expand Down

0 comments on commit 40a04d5

Please sign in to comment.