mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
Merge commit '30d70e79a6b4ac7f4eb66446a9da275161ef6ea7'
* commit '30d70e79a6b4ac7f4eb66446a9da275161ef6ea7': dcadec: set AV_FRAME_DATA_MATRIXENCODING side data. Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
ae01af2475
@ -2560,6 +2560,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;
|
||||
|
Loading…
Reference in New Issue
Block a user