dcadec: set AV_FRAME_DATA_MATRIXENCODING side data.

This commit is contained in:
Tim Walker 2013-12-11 02:03:31 +00:00
parent 6bfdb2de88
commit 30d70e79a6
1 changed files with 9 additions and 0 deletions

View File

@ -2001,6 +2001,15 @@ FF_ENABLE_DEPRECATION_WARNINGS
for (i = 0; i < 2 * s->lfe * 4; i++)
s->lfe_data[i] = s->lfe_data[i + lfe_samples];
/* AVMatrixEncoding
*
* DCA_STEREO_TOTAL (Lt/Rt) is equivalent to Dolby Surround */
ret = ff_side_data_update_matrix_encoding(frame,
(s->output & ~DCA_LFE) == DCA_STEREO_TOTAL ?
AV_MATRIX_ENCODING_DOLBY : AV_MATRIX_ENCODING_NONE);
if (ret < 0)
return ret;
*got_frame_ptr = 1;
return buf_size;