On Wed, Aug 13, 2014 at 11:56 AM, Luca Barbato <[email protected]> wrote:
> On 13/08/14 02:52, Vittorio Giovara wrote:
>> Convert the Matroska stereo format to the Stereo3D format, and add a
>> Stereo3D side data to the stream.
>> ---
>>  libavformat/matroska.c    | 75 
>> +++++++++++++++++++++++++++++++++++++++++++++++
>>  libavformat/matroska.h    |  3 ++
>>  libavformat/matroskadec.c |  8 ++++-
>>  3 files changed, 85 insertions(+), 1 deletion(-)
>>
>> diff --git a/libavformat/matroska.c b/libavformat/matroska.c
>> index 9628abc..e5cd61d 100644
>> --- a/libavformat/matroska.c
>> +++ b/libavformat/matroska.c
>> @@ -19,6 +19,8 @@
>>   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 
>> USA
>>   */
>>
>> +#include "libavutil/stereo3d.h"
>> +
>>  #include "matroska.h"
>>
>>  const CodecTags ff_mkv_codec_tags[]={
>> @@ -103,3 +105,76 @@ const AVMetadataConv ff_mkv_metadata_conv[] = {
>>      { "PART_NUMBER"   , "track"  },
>>      { 0 }
>>  };
>> +
>> +int ff_mkv_stereo3d_conv(AVStream *st, MatroskaVideoStereoModeType 
>> stereo_mode)
>> +{
>> +    AVPacketSideData *sd, *tmp;
>> +    AVStereo3D *stereo;
>> +    int i;
>> +
>> +    // error out?
>> +    if (stereo_mode >= MATROSKA_VIDEO_STEREOMODE_TYPE_NB)
>
> warn in detail, ask for sample, explode if explode flag is set.

This actually can never happen, I dropped this check locally.
-- 
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to