[libav-devel] [PATCH 1/3] matroskadec: skip video projection parsing for non-spherical video streams

Hendrik Leppkes h.leppkes at gmail.com
Thu Nov 2 09:21:03 CET 2017


On Thu, Nov 2, 2017 at 3:10 AM, Sean McGovern <gseanmcg at gmail.com> 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;
> +    }
> +

Stereo-mode seems a bit unrelated to the projection, additionally
comparing to the _NB constant seems wrong, it should never be that
value.


More information about the libav-devel mailing list