diff options
author | James Almer <jamrial@gmail.com> | 2017-03-27 17:09:45 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-03-27 18:53:52 -0300 |
commit | a715e5a276c03e0a3a47531d382106ec3390c756 (patch) | |
tree | 3f87347014f4b16bafd8c7baf13f4f94f06f8077 /libavformat/movenc.c | |
parent | b4189590a59159317f6316106e2f061e5c6df556 (diff) | |
download | ffmpeg-a715e5a276c03e0a3a47531d382106ec3390c756.tar.gz |
avformat/movenc: restrict st3d and sv3d mov atoms to MODE_MP4
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 112471d1eb..0891e72ee7 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1962,7 +1962,7 @@ static int mov_write_video_tag(AVIOContext *pb, MOVMuxContext *mov, MOVTrack *tr av_log(mov->fc, AV_LOG_WARNING, "Not writing 'colr' atom. Format is not MOV or MP4.\n"); } - if (mov->fc->strict_std_compliance <= FF_COMPLIANCE_EXPERIMENTAL) { + if (track->mode == MODE_MP4 && mov->fc->strict_std_compliance <= FF_COMPLIANCE_EXPERIMENTAL) { AVStereo3D* stereo_3d = (AVStereo3D*) av_stream_get_side_data(track->st, AV_PKT_DATA_STEREO3D, NULL); AVSphericalMapping* spherical_mapping = (AVSphericalMapping*)av_stream_get_side_data(track->st, AV_PKT_DATA_SPHERICAL, NULL); |