diff options
author | wm4 <wm4@nowhere> | 2015-06-12 17:53:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-12 17:53:23 +0200 |
commit | 433402b56cdc2a32a6cb45d13a234b9617a3c9f9 (patch) | |
tree | 3031f6bf25d4905212fc8632aa42569463524396 /audio/format.h | |
parent | c890eeac47476acda3ae4e2579b021102139f12c (diff) | |
download | mpv-433402b56cdc2a32a6cb45d13a234b9617a3c9f9.tar.bz2 mpv-433402b56cdc2a32a6cb45d13a234b9617a3c9f9.tar.xz |
audio: fill NA channels with silence
Until now, we didn't do this, because it required some effort, and
didn't seem to be necessary. It probably still isn't, but it sounds
like a good idea not to output arbitrary data on these channels.
The situation is complicated by the fact that just adding new channels
to a planar frame would require messing with buffers. So we would have
to allocate new buffers and add them to the frame. We could have to
maintain an extra buffer pool for this. Avoid this by being "clever",
and just allocate a frame with enough channels in the first place.
libav/swresample won't know about these channels and won't write to
them, but we can grab them in reorder_planes() and use them for the
NA channels.
Diffstat (limited to 'audio/format.h')
0 files changed, 0 insertions, 0 deletions