[FFmpeg-cvslog] asfdec: avoid unused variable warning.

Michael Niedermayer michaelni at gmx.at
Tue Nov 15 13:12:50 CET 2011


On Tue, Nov 15, 2011 at 07:24:14AM +0100, Clément Bœsch wrote:
> On Tue, Nov 15, 2011 at 02:35:31AM +0100, Michael Niedermayer wrote:
> > ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 15 01:58:13 2011 +0100| [6760bd0a1900ee096de0ed02f98d13ef0430f965] | committer: Michael Niedermayer
> > 
> > asfdec: avoid unused variable warning.
> > 
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > 
> > > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6760bd0a1900ee096de0ed02f98d13ef0430f965
> > ---
> > 
> >  libavformat/asfdec.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
> > index c8b8183..3ccc9b8 100644
> > --- a/libavformat/asfdec.c
> > +++ b/libavformat/asfdec.c
> > @@ -812,7 +812,7 @@ static int asf_read_frame_header(AVFormatContext *s, AVIOContext *pb){
> >      ASFContext *asf = s->priv_data;
> >      int rsize = 1;
> >      int num = avio_r8(pb);
> > -    int64_t ts0, ts1;
> > +    av_unused int64_t ts0, ts1;
> >  
> 
> Nit: I think "int64_t ts0, ts1 av_unused" would make more sense since only
> ts1 is unused.

fixed locally

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

He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-cvslog/attachments/20111115/ad4368e7/attachment.asc>


More information about the ffmpeg-cvslog mailing list