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

Clément Bœsch ubitux at gmail.com
Tue Nov 15 07:24:14 CET 2011


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.

-- 
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-cvslog/attachments/20111115/af184549/attachment.asc>


More information about the ffmpeg-cvslog mailing list