[FFmpeg-devel] [PATCH] brstm: print major/minor version at AV_LOG_DEBUG.
Paul B Mahol
onemda at gmail.com
Sun Dec 16 13:07:52 CET 2012
On 12/16/12, Michael Niedermayer <michaelni at gmx.at> wrote:
> This also avoids 2 unused variable warnings.
>
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
> libavformat/brstm.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/brstm.c b/libavformat/brstm.c
> index 80f73ed..611de2e 100644
> --- a/libavformat/brstm.c
> +++ b/libavformat/brstm.c
> @@ -227,6 +227,7 @@ skip:
> }
> }
>
> + av_log(s, AV_LOG_DEBUG, "Version %d.%d\n", major, minor);
OK, the values are unused because of lack of samples.
So you could just check that major is 1 and minor is 0 and for anything
else request samples.
> fail:
> read_close(s);
>
> --
> 1.7.9.5
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
More information about the ffmpeg-devel
mailing list