fixed stream.CodecCtx(), packet test, sws test