On Wed, Feb 15, 2017 at 11:12 AM, wm4 <nfx...@googlemail.com> wrote: > On Fri, 10 Feb 2017 16:08:10 -0500 > Vittorio Giovara <vittorio.giov...@gmail.com> wrote: >> @@ -3369,6 +3393,26 @@ static int mov_parse_uuid_spherical(MOVStreamContext >> *sc, AVIOContext *pb, size_ >> val = av_stristr(buffer, "<GSpherical:InitialViewRollDegrees>"); >> if (val) >> sc->spherical->roll = strtol(val, NULL, 10) * (1 << 16); >> + >> + /* tiling */ >> + val = av_stristr(buffer, "<GSpherical:CroppedAreaLeftPixels>"); >> + if (val) >> + sc->spherical->left_bound = strtol(val, NULL, 10); >> + val = av_stristr(buffer, "<GSpherical:CroppedAreaTopPixels>"); >> + if (val) >> + sc->spherical->top_bound = strtol(val, NULL, 10); >> + val = av_stristr(buffer, >> "<GSpherical:CroppedAreaImageWidthPixels>"); >> + if (val) >> + sc->spherical->right_bound = >> + sc->width - sc->spherical->left_bound - strtol(val, NULL, >> 10); >> + val = av_stristr(buffer, >> "<GSpherical:CroppedAreaImageHeightPixels>"); >> + if (val) >> + sc->spherical->bottom_bound = >> + sc->height - sc->spherical->top_bound - strtol(val, NULL, >> 10); > > Does this try to parse XML?
¯\_(ツ)_/¯ > Who is responsible for this crime (storing it as XML in mp4)? https://github.com/google/spatial-media/blob/master/docs/spherical-video-rfc.md -- Vittorio _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel