lwlibav_dec: Add lw_copy_av_packet() and use it instead of av_copy_packet().

av_copy_packet() is not defined in libav.