[libav-devel] [PATCH] matroskadec: don't warn about unknown spherical medata when none is present

Luca Barbato lu_zero at gentoo.org
Thu Nov 2 16:01:30 CET 2017


On 02/11/2017 15:03, James Almer wrote:
> track->video.projection.type is 0 by default, and is the value set by the
> demuxer for files without the element.
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>   libavformat/matroskadec.c | 3 ---
>   1 file changed, 3 deletions(-)
> 
> diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
> index c6e1a190a8..5ed03bb642 100644
> --- a/libavformat/matroskadec.c
> +++ b/libavformat/matroskadec.c
> @@ -1659,9 +1659,6 @@ static int mkv_parse_video_projection(AVStream *st, const MatroskaTrack *track)
>           }
>           break;
>       default:
> -        av_log(NULL, AV_LOG_WARNING,
> -               "Unknown spherical metadata type %"PRIu64"\n",
> -               track->video.projection.type);
>           return 0;
>       }
>   
> 

not sure if would be overkill add a

0: return 0; // nothing to do

or such.


More information about the libav-devel mailing list