summaryrefslogtreecommitdiffstats
path: root/audio/chmap_sel.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-12 17:53:23 +0200
committerwm4 <wm4@nowhere>2015-06-12 17:53:23 +0200
commit433402b56cdc2a32a6cb45d13a234b9617a3c9f9 (patch)
tree3031f6bf25d4905212fc8632aa42569463524396 /audio/chmap_sel.c
parentc890eeac47476acda3ae4e2579b021102139f12c (diff)
downloadmpv-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/chmap_sel.c')
0 files changed, 0 insertions, 0 deletions