Wrapped AVStream, used a skeleton AVCodec.
Fixed crash due to invalid memory access.