lavu: Add values for various Dolby flags to the AVMatrixEncoding enum.
avframe: add AV_FRAME_DATA_MATRIXENCODING side data type.

Includes a libavcodec utility function to update a frame's side data.
dcadec: set the output channel mode more accurately.

When downmixing 2.1 to 2-channel, if the 2.0 portion is Lt/Rt, sum-difference or dual mono, the actual output will be the same (with the LFE either mixed-in or discarded).

Also, when downmixing an arbitrary layout to 2-channel, if the bitstream contains custom downmix coefficients targeting Lt/Rt, then the output will be Lt/Rt rather than regular Stereo.
dcadec: set AV_FRAME_DATA_MATRIXENCODING side data.
mlp: Parse TrueHD decoder channel modifiers and set the AVMatrixEncoding for each substream.
mlpdec: set AV_FRAME_DATA_MATRIXENCODING side data.
(e)ac3: parse and store the Dolby Surround, Surround EX and Headphone mode flags.
(e)ac3dec: set AV_FRAME_DATA_MATRIXENCODING side data.
NOT FOR COMMIT

Just some quick testing code.