avformat/sierravmd: check for memory allocation failures