be slightly more careful with copying the codec_tag in the streamcopy case