matroskadec: parse the channel layout mask for FLAC

It is commonly stored in a vorbiscomment block in codec private data.
This commit is contained in:
Anton Khirnov
2014-05-26 12:48:56 +02:00
parent 4efdadc8ec
commit 23f741f793
11 changed files with 53 additions and 12 deletions

View File

@ -74,7 +74,7 @@ static int opus_header(AVFormatContext *avf, int idx)
if (priv->need_comments) {
if (os->psize < 8 || memcmp(packet, "OpusTags", 8))
return AVERROR_INVALIDDATA;
ff_vorbis_comment(avf, &st->metadata, packet + 8, os->psize - 8);
ff_vorbis_comment(avf, &st->metadata, packet + 8, os->psize - 8, 1);
priv->need_comments--;
return 1;
}