Commit e2730af6 authored by Steve Lhomme's avatar Steve Lhomme

mkclean: set the StereoMode to 13 when using --alt-3d

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/foundation_src@745 a6f86f6d-0131-4f8e-9e7b-e335508773d5
parent 8cd48e03
2011-04-xx
version 0.8.3:
- fix the progress display on segments with no size set (like live streams)
- add -alt-3d to pack video frames by 2 when left/right eyes are coded sequentially in time (half duration frames)
2011-04-03
version 0.8.2:
......
......@@ -1207,6 +1207,13 @@ static int CleanTracks(ebml_master *Tracks, int SrcProfile, int *DstProfile, ebm
}
}
if (ARRAYCOUNT(*Alternate3DTracks, block_info*) >= (size_t)TrackNum && ARRAYBEGIN(*Alternate3DTracks, block_info*)[TrackNum])
{
// force the proper StereoMode value
Elt2 = EBML_MasterGetChild((ebml_master*)Elt,&MATROSKA_ContextStereoMode);
EBML_IntegerSetValue((ebml_integer*)Elt2, TRACK_STEREO_MODE_ALTERNATE_PACKED_L);
}
if (*DstProfile==PROFILE_WEBM)
{
// verify that we have only VP8 and Vorbis tracks
......@@ -1807,7 +1814,13 @@ int main(int argc, const char *argv[])
DocVersion=2;
if (DstProfile==PROFILE_MATROSKA_V3)
DocVersion=3;
if (ARRAYCOUNT(Alternate3DTracks, block_info*) && DstProfile!=PROFILE_MATROSKA_V3)
{
TextPrintf(StdErr,T("Using --alt-3d in profile '%s' try \"--doctype %d\"\r\n"),GetProfileName(DstProfile),GetProfileId(PROFILE_MATROSKA_V3));
goto exit;
}
RLevel1 = (ebml_master*)EBML_MasterGetChild(EbmlHead,&EBML_ContextDocTypeVersion);
if (!RLevel1)
goto exit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment