Fix palette copying in av_picture_copy(). Previous code worked only if