[FFmpeg-devel] [PATCH] avformat/icoenc: Remove deprecated use of codec_name

Michael Niedermayer michaelni at gmx.at
Thu Aug 28 14:43:32 CEST 2014


On Thu, Aug 28, 2014 at 11:38:32AM +0200, Paul B Mahol wrote:
> On 8/27/14, Michael Niedermayer <michaelni at gmx.at> wrote:
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> >  libavformat/icoenc.c |    3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/libavformat/icoenc.c b/libavformat/icoenc.c
> > index dcf9065..53d4420 100644
> > --- a/libavformat/icoenc.c
> > +++ b/libavformat/icoenc.c
> > @@ -61,7 +61,8 @@ static int ico_check_attributes(AVFormatContext *s, const
> > AVCodecContext *c)
> >              return AVERROR(EINVAL);
> >          }
> >      } else {
> > -        av_log(s, AV_LOG_ERROR, "Unsupported codec %s\n", c->codec_name);
> > +        const AVCodecDescriptor *codesc =
> > avcodec_descriptor_get(c->codec_id);
> > +        av_log(s, AV_LOG_ERROR, "Unsupported codec %s\n", codesc ?
> > codesc->name : "");
> >          return AVERROR(EINVAL);
> >      }
> >
> > --
> > 1.7.9.5
> >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> 
> ok

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140828/c23662bc/attachment.asc>


More information about the ffmpeg-devel mailing list