Adapted from the code by Rémi Denis-Courmont from VLC This merges libav commit 4e928ef340. Signed-off-by: Wan-Teh Chang <wtc@google.com> Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
4e928ef340