On 11/1/2017 11:10 PM, Sean McGovern wrote:
> ---
> libavformat/matroskadec.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
> index c6e1a19..3743d4d 100644
> --- a/libavformat/matroskadec.c
> +++ b/libavformat/matroskadec.c
> @@ -1606,6 +1606,10 @@ static int mkv_parse_video_projection(AVStream *st,
> const MatroskaTrack *track)
> int ret;
> GetByteContext gb;
>
> + if (track->video.stereo_mode == MATROSKA_VIDEO_STEREOMODE_TYPE_NB) {
> + return 0;
> + }
> +
> bytestream2_init(&gb, track->video.projection.private.data,
> track->video.projection.private.size);
This is not correct. As Hendrik said stereo mode has nothing to do with
Spherical. You can have elements from one but not the other.
The problem you're seeing ("Unknown spherical metadata type 0" warning)
is because track->video.projection.type == 0 is the default and set by
the demuxer for every file without spherical elements. The demuxer
should not emit a warning for that value and silently return instead.
I'll send a patch for this in a moment.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel