avcodec: copy frame-based palette

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>