[FFmpeg-devel] [PATCH 3/4] ffprobe: fix const compiler warning.

Clément Bœsch ubitux at gmail.com
Sat Nov 5 15:27:25 CET 2011


On Sat, Nov 05, 2011 at 02:09:50PM +0100, Stefano Sabatini wrote:
> On date Saturday 2011-11-05 13:30:51 +0100, Clément Bœsch encoded:
> > ---
> >  ffprobe.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/ffprobe.c b/ffprobe.c
> > index e2823d9..4ee87ec 100644
> > --- a/ffprobe.c
> > +++ b/ffprobe.c
> > @@ -710,7 +710,7 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
> >          print_str("codec_type", "unknown");
> >      }
> >      if (dec_ctx->codec && dec_ctx->codec->priv_class) {
> > -        AVOption *opt = NULL;
> > +        const AVOption *opt = NULL;
> >          while (opt = av_opt_next(dec_ctx->priv_data,opt)) {
> >              uint8_t *str;
> >              if (opt->flags) continue;
> 
> Should be fine, thanks.

Pushed.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111105/7eb539c9/attachment.asc>


More information about the ffmpeg-devel mailing list